Skip to content

Commit 4becd5f

Browse files
committed
mkosi: Only archive outputs in systemd and systemd-stable repositories
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.
1 parent e85be49 commit 4becd5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/mkosi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ jobs:
188188

189189
- name: Archive failed test journals
190190
uses: actions/upload-artifact@v4
191-
if: failure()
191+
if: failure() && (github.repository == 'systemd/systemd' || github.repository == 'systemd/systemd-stable')
192192
with:
193193
name: ci-mkosi-${{ github.run_id }}-${{ github.run_attempt }}-${{ matrix.distro }}-${{ matrix.release }}-failed-test-journals
194194
path: |
@@ -197,7 +197,7 @@ jobs:
197197
198198
- name: Archive packages
199199
uses: actions/upload-artifact@v4
200-
if: success() || failure()
200+
if: (success() || failure()) && (github.repository == 'systemd/systemd' || github.repository == 'systemd/systemd-stable')
201201
with:
202202
name: ci-mkosi-${{ github.run_id }}-${{ github.run_attempt }}-${{ matrix.distro }}-${{ matrix.release }}-packages
203203
path: |

0 commit comments

Comments
 (0)