]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Only archive outputs in systemd and systemd-stable repositories
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 25 Apr 2024 17:50:38 +0000 (19:50 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 25 Apr 2024 18:51:08 +0000 (20:51 +0200)
Private forks would very quickly reach their quota or spend lots of
money trying to archive all these artifacts, so let's make sure it
only happens on our own repositories.

.github/workflows/mkosi.yml

index e7fe33900b3d095e012fc5dc0334f9920a3d08ef..771e1396989c2648958f441b6f63924a324e859f 100644 (file)
@@ -188,7 +188,7 @@ jobs:
 
     - name: Archive failed test journals
       uses: actions/upload-artifact@v4
-      if: failure()
+      if: failure() && (github.repository == 'systemd/systemd' || github.repository == 'systemd/systemd-stable')
       with:
         name: ci-mkosi-${{ github.run_id }}-${{ github.run_attempt }}-${{ matrix.distro }}-${{ matrix.release }}-failed-test-journals
         path: |
@@ -197,7 +197,7 @@ jobs:
 
     - name: Archive packages
       uses: actions/upload-artifact@v4
-      if: success() || failure()
+      if: (success() || failure()) && (github.repository == 'systemd/systemd' || github.repository == 'systemd/systemd-stable')
       with:
         name: ci-mkosi-${{ github.run_id }}-${{ github.run_attempt }}-${{ matrix.distro }}-${{ matrix.release }}-packages
         path: |