Skip to content

Commit

Permalink
ci: upload artifacts using run_attempt instead of run_number
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Feb 21, 2024
1 parent 2e5ccfc commit 995080e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ jobs:
- name: Upload Python artifact
uses: actions/upload-artifact@v4
with:
name: dist-${{ github.run_number }}
name: dist-${{ github.run_attempt }}
path: dist
if-no-files-found: error

- name: Upload Javascript artifact
uses: actions/upload-artifact@v4
with:
name: jsdist-${{ github.run_number }}
name: jsdist-${{ github.run_attempt }}
path: jsdist
if-no-files-found: error

Expand All @@ -95,7 +95,7 @@ jobs:
- name: Download artifacts from build
uses: actions/download-artifact@v4
with:
name: dist-${{ github.run_number }}
name: dist-${{ github.run_attempt }}
path: dist

# The PyPI publishing action will try to publish this checksum file as if
Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:
- name: Download artifacts from build
uses: actions/download-artifact@v4
with:
name: jsdist-${{ github.run_number }}
name: jsdist-${{ github.run_attempt }}
path: jsdist

- run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Upload built artifacts
uses: actions/upload-artifact@v4
with:
name: dist-${{ github.run_number }}
name: dist-${{ github.run_attempt }}
path: ./dist

test:
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
- name: Download built artifacts
uses: actions/download-artifact@v4
with:
name: dist-${{ github.run_number }}
name: dist-${{ github.run_attempt }}
path: ./dist

- name: Install Python package
Expand Down Expand Up @@ -155,7 +155,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: |-
tests-${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.pip-extras }}-${{ github.run_number }}
tests-${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.pip-extras }}-${{ github.run_attempt }}
path: |
./build/pytest
./build/coverage
Expand Down

0 comments on commit 995080e

Please sign in to comment.