Skip to content

Commit 995080e

Browse files
committed
ci: upload artifacts using run_attempt instead of run_number
1 parent 2e5ccfc commit 995080e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/publish.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ jobs:
7070
- name: Upload Python artifact
7171
uses: actions/upload-artifact@v4
7272
with:
73-
name: dist-${{ github.run_number }}
73+
name: dist-${{ github.run_attempt }}
7474
path: dist
7575
if-no-files-found: error
7676

7777
- name: Upload Javascript artifact
7878
uses: actions/upload-artifact@v4
7979
with:
80-
name: jsdist-${{ github.run_number }}
80+
name: jsdist-${{ github.run_attempt }}
8181
path: jsdist
8282
if-no-files-found: error
8383

@@ -95,7 +95,7 @@ jobs:
9595
- name: Download artifacts from build
9696
uses: actions/download-artifact@v4
9797
with:
98-
name: dist-${{ github.run_number }}
98+
name: dist-${{ github.run_attempt }}
9999
path: dist
100100

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

133133
- run: |

.github/workflows/test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- name: Upload built artifacts
5656
uses: actions/upload-artifact@v4
5757
with:
58-
name: dist-${{ github.run_number }}
58+
name: dist-${{ github.run_attempt }}
5959
path: ./dist
6060

6161
test:
@@ -96,7 +96,7 @@ jobs:
9696
- name: Download built artifacts
9797
uses: actions/download-artifact@v4
9898
with:
99-
name: dist-${{ github.run_number }}
99+
name: dist-${{ github.run_attempt }}
100100
path: ./dist
101101

102102
- name: Install Python package
@@ -155,7 +155,7 @@ jobs:
155155
uses: actions/upload-artifact@v4
156156
with:
157157
name: |-
158-
tests-${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.pip-extras }}-${{ github.run_number }}
158+
tests-${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.pip-extras }}-${{ github.run_attempt }}
159159
path: |
160160
./build/pytest
161161
./build/coverage

0 commit comments

Comments
 (0)