From e1e1aa289d63780778546bbdd60021adced12fd6 Mon Sep 17 00:00:00 2001 From: Sam Stenvall Date: Mon, 7 Nov 2022 14:54:55 +0200 Subject: [PATCH] Don't tag and create releases on forks Forkers that have push rights (like I do) will end up with bogus releases and bogus tags --- .github/workflows/binaries.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/binaries.yml b/.github/workflows/binaries.yml index b96eb82331..1a2f011fdb 100644 --- a/.github/workflows/binaries.yml +++ b/.github/workflows/binaries.yml @@ -37,7 +37,7 @@ jobs: - name: Bump version and push tag/create release point uses: anothrNick/github-tag-action@1.35.0 - if: ${{ github.event_name == 'push' }} + if: ${{ github.event_name == 'push' && github.repository_owner == 'catalinii' }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} WITH_V: true @@ -45,13 +45,10 @@ jobs: id: bump_version - name: Upload binary to release uses: svenstaro/upload-release-action@v1-release - if: ${{ github.event_name == 'push' }} + if: ${{ github.event_name == 'push' && github.repository_owner == 'catalinii' }} with: repo_token: ${{ secrets.GITHUB_TOKEN }} file: /minisatip*zip file_glob: true tag: ${{ steps.bump_version.outputs.new_tag }} overwrite: true - - -