Skip to content

Commit d212aab

Browse files
committed
strategy.job-index
1 parent ee85e4e commit d212aab

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/_build-packages.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
4444
- uses: actions/upload-artifact@v4
4545
with:
46-
name: ${{ inputs.artifact-name }}-${{ matrix.pkg-name }}
46+
name: ${{ inputs.artifact-name }}-${{ strategy.job-index }}
4747
path: pypi
4848
retention-days: 1
4949

@@ -52,13 +52,15 @@ jobs:
5252
steps:
5353
- uses: actions/download-artifact@v4
5454
with: # download all build artifacts
55-
pattern: ${{ inputs.artifact-name }}-*
55+
pattern: ${{ inputs.artifact-name }}*
5656
merge-multiple: true
57+
- run: ls -lh pypi/
58+
5759
- name: Keep artifact
5860
run: python -c "print('DAYS=' + str(5 if '${{ github.event_name }}'.startswith('pull_request') else 0))" >> $GITHUB_ENV
59-
- run: ls -lh pypi/
6061
- uses: actions/upload-artifact@v4
6162
with:
6263
name: ${{ inputs.artifact-name }}
6364
path: pypi
6465
retention-days: ${{ env.DAYS }}
66+
if-no-files-found: error

0 commit comments

Comments
 (0)