Skip to content

Commit e6432ad

Browse files
authored
fix(branch-out-upload): add artifact-name input to prevent 409 collision in parallel matrix jobs (#1512)
* fix(branch-out-upload): add artifact-name input to prevent 409 collision in parallel matrix jobs * chore: add changeset for branch-out-upload artifact-name input
1 parent 8431395 commit e6432ad

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.changeset/brave-donuts-flow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"branch-out-upload": patch
3+
---
4+
5+
Add artifact-name input to prevent 409 collision when multiple matrix jobs upload test logs in the same workflow run

actions/branch-out-upload/action.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ inputs:
6060
run in different environments (e.g., OSes, browsers, DON topologies).
6161
required: false
6262

63+
artifact-name:
64+
description: |
65+
Name for the uploaded test logs artifact. Override when multiple jobs in
66+
the same workflow run use this action to avoid a 409 name collision.
67+
required: false
68+
default: "individual_test_logs"
69+
6370
runs:
6471
using: composite
6572
steps:
@@ -212,6 +219,6 @@ runs:
212219
if: ${{ failure() && steps.inputs-ext.outputs.run-enhancer == 'true' }}
213220
uses: actions/upload-artifact@v7
214221
with:
215-
name: individual_test_logs
222+
name: ${{ inputs.artifact-name }}
216223
path: "${{ steps.inputs-ext.outputs.junit-dir }}/raw-test-logs/"
217224
retention-days: 10

0 commit comments

Comments
 (0)