From bc373dc05b946b9af9c89f4dbf26b131ff9d813b Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Fri, 19 May 2023 02:34:14 +0200 Subject: [PATCH] fix release commit, prevent creating releases from prs --- .github/workflows/build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9021272..a240ad7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,7 +49,7 @@ jobs: publish-nightly: needs: build permissions: write-all - if: (github.ref == 'refs/heads/master') && (!startsWith(github.ref, 'refs/tags/v')) + if: (github.event_name == 'push') && (github.ref == 'refs/heads/master') runs-on: ubuntu-latest steps: - uses: actions/download-artifact@v2 @@ -67,6 +67,7 @@ jobs: with: name: nightly tag: nightly + commit: ${GITHUB_SHA} allowUpdates: true removeArtifacts: true replacesArtifacts: true @@ -78,7 +79,7 @@ jobs: publish-release: needs: build permissions: write-all - if: startsWith(github.ref, 'refs/tags/v') + if: (github.event_name == 'push') && startsWith(github.ref, 'refs/tags/v') runs-on: ubuntu-latest steps: - uses: actions/download-artifact@v2