Skip to content

Commit 37ef6a8

Browse files
fix: add unique artifact name suffixes to prevent upload conflicts
Configure unique 'upload-name-suffix' for each build-and-inspect-python-package invocation to prevent artifact name conflicts: - vcs-versioning build: Packages-vcs-versioning - setuptools-scm build: Packages-setuptools-scm This resolves the 409 Conflict error where both builds were trying to upload artifacts with the same default name 'Packages'.
1 parent c164c1b commit 37ef6a8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/python-tests.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,23 @@ jobs:
3535
uses: hynek/build-and-inspect-python-package@v2
3636
with:
3737
path: nextgen/vcs-versioning
38+
upload-name-suffix: -vcs-versioning
3839

3940
- name: Build setuptools-scm
4041
uses: hynek/build-and-inspect-python-package@v2
42+
with:
43+
upload-name-suffix: -setuptools-scm
4144

4245
- name: Download vcs-versioning packages
4346
uses: actions/download-artifact@v4
4447
with:
45-
name: Packages-nextgen-vcs-versioning
48+
name: Packages-vcs-versioning
4649
path: dist/
4750

4851
- name: Download setuptools-scm packages
4952
uses: actions/download-artifact@v4
5053
with:
51-
name: Packages
54+
name: Packages-setuptools-scm
5255
path: dist/
5356

5457
- name: Upload combined packages

0 commit comments

Comments
 (0)