From a56b3a9644b4621018d848341c64d2549b7c8beb Mon Sep 17 00:00:00 2001 From: Alejandro R Mosteo Date: Wed, 19 Jun 2024 11:10:50 +0200 Subject: [PATCH] Apply label to PR on missing dependencies automatically (#1094) --- .github/workflows/build-distros.yml | 9 ++++++++- .github/workflows/build-native-master.yml | 6 ++++++ .github/workflows/build-native.yml | 6 ++++++ .github/workflows/build-ports.yml | 6 ++++++ index/sa/saatana/saatana-2.0.2.toml | 2 +- 5 files changed, 27 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-distros.yml b/.github/workflows/build-distros.yml index 3f20342c1..54c747f7a 100644 --- a/.github/workflows/build-distros.yml +++ b/.github/workflows/build-distros.yml @@ -18,6 +18,8 @@ jobs: build: name: ${{ matrix.tag }} + env: + JOB_NAME: ${{ matrix.tag }} runs-on: ubuntu-latest @@ -67,4 +69,9 @@ jobs: with: image: ghcr.io/alire-project/docker/gnat:${{matrix.tag}} command: ${{env.CHECKS_REPO}}/scripts/gh-build-crate.sh - params: -v ${{ github.workspace }}/alire_install/bin/alr:/usr/bin/alr + params: > + -v ${{ github.workspace }}/alire_install/bin/alr:/usr/bin/alr + -v ${{ github.event_path}}:/etc/event.json + -e GITHUB_EVENT_PATH=/etc/event.json + -e GITHUB_REPOSITORY=${{ github.repository }} + -e GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/build-native-master.yml b/.github/workflows/build-native-master.yml index 4ccf85332..296825111 100644 --- a/.github/workflows/build-native-master.yml +++ b/.github/workflows/build-native-master.yml @@ -21,6 +21,8 @@ jobs: build: name: ${{ matrix.os }} + env: + JOB_NAME: ${{ matrix.os }} runs-on: ${{ matrix.os }} @@ -61,3 +63,7 @@ jobs: - name: Test crate run: ${{env.CHECKS_REPO}}/scripts/gh-build-crate.sh shell: bash + env: + GITHUB_EVENT_PATH: ${{ github.event_path }} + GITHUB_REPOSITORY: ${{ github.repository }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to apply labels/comment diff --git a/.github/workflows/build-native.yml b/.github/workflows/build-native.yml index ee6bc625d..e3d9fd9ae 100644 --- a/.github/workflows/build-native.yml +++ b/.github/workflows/build-native.yml @@ -18,6 +18,8 @@ jobs: build: name: ${{ matrix.os }} + env: + JOB_NAME: ${{ matrix.os }} runs-on: ${{ matrix.os }} @@ -67,3 +69,7 @@ jobs: - name: Test crate run: ${{env.CHECKS_REPO}}/scripts/gh-build-crate.sh shell: bash + env: + GITHUB_EVENT_PATH: ${{ github.event_path }} + GITHUB_REPOSITORY: ${{ github.repository }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to apply labels/comment diff --git a/.github/workflows/build-ports.yml b/.github/workflows/build-ports.yml index 969758e0e..bfcf70ea1 100644 --- a/.github/workflows/build-ports.yml +++ b/.github/workflows/build-ports.yml @@ -20,6 +20,8 @@ jobs: build: name: ${{ matrix.os }} + env: + JOB_NAME: ${{ matrix.os }} runs-on: ${{ matrix.os }} @@ -65,3 +67,7 @@ jobs: - name: Test crate run: ${{env.CHECKS_REPO}}/scripts/gh-build-crate.sh shell: bash + env: + GITHUB_EVENT_PATH: ${{ github.event_path }} + GITHUB_REPOSITORY: ${{ github.repository }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to apply labels/comment diff --git a/index/sa/saatana/saatana-2.0.2.toml b/index/sa/saatana/saatana-2.0.2.toml index 44e2b0c03..79642a80a 100644 --- a/index/sa/saatana/saatana-2.0.2.toml +++ b/index/sa/saatana/saatana-2.0.2.toml @@ -11,7 +11,7 @@ project-files = ["saatana.gpr"] tags = ["cryptography", "spark"] [[depends-on]] -gnat = "^2020" +gnat = "^2020" # This is probably too restrictive [origin] url = "https://github.com/HeisenbugLtd/Saatana/archive/v2.0.2.tar.gz"