Skip to content

Commit 988da23

Browse files
committed
build: only try to upload if it's linux-nvme/nvme-cli repo
There is no point trying to upload any thing when not running from the main repo. Signed-off-by: Daniel Wagner <[email protected]>
1 parent f37fe71 commit 988da23

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/upload.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
name: upload test binary
4848
runs-on: ubuntu-latest
4949
needs: build-static
50-
if: ${{ github.event_name == 'push' || github.event_name == 'release' }}
50+
if: ${{ github.event_name == 'push' || github.event_name == 'release' }} && github.repository == 'linux-nvme/nvme-cli'
5151
steps:
5252
- uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
5353
with:
@@ -74,7 +74,7 @@ jobs:
7474
needs: build-static
7575
env:
7676
VERSION: ${{ needs.build-static.outputs.VERSION }}
77-
if: ${{ github.event_name == 'release' }}
77+
if: ${{ github.event_name == 'release' }} && github.repository == 'linux-nvme/nvme-cli'
7878
steps:
7979
- uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
8080
with:

0 commit comments

Comments
 (0)