]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
build: upload artifacts only for upstream repo
authorDaniel Wagner <dwagner@suse.de>
Wed, 11 Oct 2023 09:56:06 +0000 (11:56 +0200)
committerDaniel Wagner <wagi@monom.org>
Wed, 11 Oct 2023 10:04:41 +0000 (12:04 +0200)
Only upload any artifacts to linux-nvme organization if it's NOT a fork.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
.github/workflows/appimage.yml
.github/workflows/coverage.yml
.github/workflows/release.yml

index 526c879bf584f0ed060e0b5548893f9ba6e50a50..c857feadffc9152907f8528feb9bff304a2bacae 100644 (file)
@@ -34,7 +34,7 @@ jobs:
     name: deploy AppImage
     runs-on: ubuntu-latest
     needs: build-appimage
-    if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
+    if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'linux-nvme/nvme-cli' }}
     steps:
       - name: Download artifact
         uses: dawidd6/action-download-artifact@v2
index 39ea739aaf442792f1bc1312ba618563c04601a0..d272d0f99385e1ee2e8573ea9a471b737fbf32f7 100644 (file)
@@ -7,6 +7,7 @@ on:
 
 jobs:
   code-coverage:
+    if: github.repository == 'linux-nvme/nvme-cli'
     name: code coverage
     runs-on: ubuntu-latest
     container:
index 82594806e37fa5dd53faa5c30c317522bc2a219d..8a5651c86acf1dbae56d093f9dbf0416b6b6c7e9 100644 (file)
@@ -10,7 +10,7 @@ on:
 jobs:
   build:
     runs-on: ubuntu-latest
-    if: startsWith(github.ref, 'refs/tags/v')
+    if: startsWith(github.ref, 'refs/tags/v') && github.repository == 'linux-nvme/nvme-cli'
     permissions:
       contents: write
     steps: