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@ike.ch>
This commit is contained in:
Michael Keller 2023-12-16 11:34:24 +13:00
parent fa609a9e9b
commit 3d902864ed
3 changed files with 3 additions and 0 deletions

View file

@ -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"

View file

@ -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"

View file

@ -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"