Skip to content

Commit 2fef435

Browse files
committed
Set explicit retention periods for workflow artifacts.
1 parent 0ddae10 commit 2fef435

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎.github/workflows/build-plugin-zip.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ jobs:
229229
with:
230230
name: gutenberg-${{ ! matrix.IS_GUTENBERG_PLUGIN && 'wordpress-develop' || 'plugin' }}
231231
path: ./gutenberg.zip
232+
# Pull request builds only need to outlive Playground previews of active pull requests.
233+
retention-days: ${{ github.event_name == 'pull_request' && 14 || 90 }}
232234

233235
- name: Build release notes draft
234236
if: ${{ matrix.IS_GUTENBERG_PLUGIN && needs.bump-version.outputs.new_version }}

‎.github/workflows/end2end-test.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ jobs:
7070
name: failures-artifacts--${{ matrix.part }}
7171
path: artifacts/test-results
7272
if-no-files-found: ignore
73+
retention-days: 14
7374

7475
- name: Archive flaky tests report
7576
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
@@ -96,6 +97,7 @@ jobs:
9697
# Retain the merged artifacts in case of a rerun.
9798
pattern: failures-artifacts*
9899
delete-merged: true
100+
retention-days: 14
99101

100102
- name: Merge flaky tests reports
101103
uses: actions/upload-artifact/merge@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1

‎.github/workflows/unit-test.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ jobs:
112112
name: build-assets
113113
path: |
114114
./build/
115+
# Only consumed by the jobs of this run, including re-runs.
116+
retention-days: 3
115117

116118
test-php:
117119
name: PHP ${{ matrix.php }}${{ matrix.multisite && ' multisite' || '' }} on Linux

0 commit comments

Comments
 (0)