Skip to content

Commit

Permalink
Don't tag and create releases on forks
Browse files Browse the repository at this point in the history
Forkers that have push rights (like I do) will end up with bogus releases and bogus tags
  • Loading branch information
Jalle19 committed Nov 7, 2022
1 parent 4fe4a18 commit e1e1aa2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,18 @@ jobs:
- name: Bump version and push tag/create release point
uses: anothrNick/[email protected]
if: ${{ github.event_name == 'push' }}
if: ${{ github.event_name == 'push' && github.repository_owner == 'catalinii' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
DEFAULT_BUMP: patch
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



0 comments on commit e1e1aa2

Please sign in to comment.