Skip to content

Commit

Permalink
build: only run upload tasks on main repo
Browse files Browse the repository at this point in the history
  • Loading branch information
erichelgeson committed Sep 15, 2024
1 parent c47cf5f commit 1b8bc5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/firmware_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Upload to latest release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: github.ref == 'refs/heads/main'
if: ${{ github.ref == 'refs/heads/main' && github.repository == 'BlueSCSI/BlueSCSI-v2' }}
run: |
cd BlueSCSI
git tag -d latest
Expand All @@ -52,7 +52,7 @@ jobs:
- name: Upload to newly created release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ startsWith(github.ref, 'refs/tags/') }}
if: ${{ startsWith(github.ref, 'refs/tags/') && github.repository == 'BlueSCSI/BlueSCSI-v2' }}
run: |
cd BlueSCSI/distrib
RELEASE=$(basename ${{github.ref}})
Expand Down

0 comments on commit 1b8bc5d

Please sign in to comment.