From 4becd5fb7338ce79b27c53ed5dd2c952c90e6d25 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Thu, 25 Apr 2024 19:50:38 +0200 Subject: [PATCH 1/2] 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. --- .github/workflows/mkosi.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/mkosi.yml b/.github/workflows/mkosi.yml index e7fe33900b..771e139698 100644 --- a/.github/workflows/mkosi.yml +++ b/.github/workflows/mkosi.yml @@ -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: | From 17310088793e94b6ececdf84dfcbcd1622a6e24f Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Thu, 25 Apr 2024 19:52:10 +0200 Subject: [PATCH 2/2] mkosi: Only keep failed test journals and other logs for 7 days The default retention of 90 days seems a bit long, so drop it to 7 days. --- .github/workflows/mkosi.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/mkosi.yml b/.github/workflows/mkosi.yml index 771e139698..d83470aba3 100644 --- a/.github/workflows/mkosi.yml +++ b/.github/workflows/mkosi.yml @@ -194,6 +194,7 @@ jobs: path: | build/test/journal/*.journal build/meson-logs/* + retention-days: 7 - name: Archive packages uses: actions/upload-artifact@v4