Skip to content

Commit

Permalink
strategy.job-index
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Dec 17, 2024
1 parent ee85e4e commit d212aab
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/_build-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: ${{ inputs.artifact-name }}-${{ matrix.pkg-name }}
name: ${{ inputs.artifact-name }}-${{ strategy.job-index }}
path: pypi
retention-days: 1

Expand All @@ -52,13 +52,15 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with: # download all build artifacts
pattern: ${{ inputs.artifact-name }}-*
pattern: ${{ inputs.artifact-name }}*
merge-multiple: true
- run: ls -lh pypi/

- name: Keep artifact
run: python -c "print('DAYS=' + str(5 if '${{ github.event_name }}'.startswith('pull_request') else 0))" >> $GITHUB_ENV
- run: ls -lh pypi/
- uses: actions/upload-artifact@v4
with:
name: ${{ inputs.artifact-name }}
path: pypi
retention-days: ${{ env.DAYS }}
if-no-files-found: error

0 comments on commit d212aab

Please sign in to comment.