Skip to content

Commit 257de7b

Browse files
authored
reorder upload-artifact and adjust log filename
1 parent 68b07f6 commit 257de7b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/check.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,18 +77,11 @@ jobs:
7777
id: build
7878
run: ./scripts/build.sh ${{ matrix.format }}
7979

80-
- name: Upload artifact - docs
81-
if: steps.build.outcome == 'success'
82-
uses: actions/[email protected]
83-
with:
84-
name: build-${{ inputs.version }}-${{ matrix.format }}
85-
path: cpython/Doc/build/${{ matrix.format }}
86-
8780
- name: Prepare notification (only on error)
8881
if: always() && steps.build.outcome == 'failure' && matrix.format == 'html'
8982
id: prepare
9083
run: |
91-
scripts/prepmsg.sh logs/sphinxwarnings.txt logs/notify.txt
84+
scripts/prepmsg.sh logs/sphinxwarnings-${format}.txt logs/notify.txt
9285
cat logs/notify.txt
9386
env:
9487
GITHUB_JOB: ${{ github.job }}
@@ -106,10 +99,17 @@ jobs:
10699

107100
- name: Upload artifact - log files
108101
if: always() && steps.build.outcome == 'failure'
109-
uses: actions/upload-artifact@v4
102+
uses: actions/upload-artifact@v4.3.5
110103
with:
111-
name: build-${{ inputs.version }}-${{ matrix.format }}
104+
name: logs-${{ inputs.version }}-${{ matrix.format }}
112105
path: logs/*
106+
107+
- name: Upload artifact - docs
108+
if: always() && steps.build.outcome == 'success'
109+
uses: actions/[email protected]
110+
with:
111+
name: build-${{ inputs.version }}-${{ matrix.format }}
112+
path: cpython/Doc/build/${{ matrix.format }}
113113

114114
# Build Python docs in PDF format and make available for download.
115115
output-pdf:

0 commit comments

Comments
 (0)