Skip to content

Commit 5e2ff16

Browse files
committed
ADD TO: publish action / upload processed files as artifact when doing a dry-run for PRs
1 parent 17ebf10 commit 5e2ff16

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/publish-wiki.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,18 @@ jobs:
5151
- name: Re-run tables of contents with different settings for specific file
5252
run: doctoc ./_wiki/Version-4.0-User-Upgrade-Guide.md --github --maxlevel 3 --update-only
5353

54+
# Retention is normally 90 days, but this artifact is only to help with reviewing PRs,
55+
# especially when new output blocks are added or the (workflow) code for existing ones
56+
# is updated. All in all, no need to keep the artifact for more than a few days.
57+
- name: "[PR only] Upload the preprocessed wiki files as an artifact"
58+
if: ${{ github.event_name == 'pull_request' }}
59+
uses: actions/upload-artifact@v4
60+
with:
61+
name: wiki-files
62+
path: ./_wiki
63+
if-no-files-found: error
64+
retention-days: 10
65+
5466
- name: Check GitHub Git Operations status
5567
uses: crazy-max/ghaction-github-status@v4
5668
with:

0 commit comments

Comments
 (0)