From 3d902864ed8f23260c6162a93849e8b1f903e1cd Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Sat, 16 Dec 2023 11:34:24 +1300 Subject: [PATCH] CICD: Don't generate build number for pull requests. Prevent attempts to generate a build number for pull request builds as they will fail due to the lack of permissions on the `subsurface/nightly-builds` repository. Signed-off-by: Michael Keller --- .github/workflows/android.yml | 1 + .github/workflows/mac.yml | 1 + .github/workflows/windows.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index b72d38958..fb59a3061 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -19,6 +19,7 @@ jobs: - name: atomically create or retrieve the build number id: build_nr + if: github.event_name == 'push' run: | cd .. # check out parallel to subsurface sources url="https://subsurface:${{ secrets.NIGHTLY_BUILDS }}@github.com/subsurface/nightly-builds" diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index a91382854..af5e28378 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -15,6 +15,7 @@ jobs: uses: actions/checkout@v1 - name: atomically create or retrieve the build number id: build_nr + if: github.event_name == 'push' run: | cd .. # check out parallel to subsurface sources url="https://subsurface:${{ secrets.NIGHTLY_BUILDS }}@github.com/subsurface/nightly-builds" diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index cee3b4003..11719acd7 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -19,6 +19,7 @@ jobs: - name: atomically create or retrieve the build number id: build_nr + if: github.event_name == 'push' run: | cd .. # check out parallel to subsurface sources url="https://subsurface:${{ secrets.NIGHTLY_BUILDS }}@github.com/subsurface/nightly-builds"