Skip to content

Commit 5c5c1e6

Browse files
committed
fix: Generate truly unique artifact names with timestamp
- Add step to generate unique ID using timestamp, PID, and random - Ensures each action invocation gets unique artifact name - Fixes 409 conflict in integration tests
1 parent 2d2b3b2 commit 5c5c1e6

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,11 +334,17 @@ runs:
334334
INPUT_MYSQL_ROOT_PASSWORD: ${{ inputs.mysql-root-password }}
335335
ACTION_PATH: ${{ github.action_path }}
336336

337+
- name: Generate unique artifact ID
338+
shell: bash
339+
id: artifact-id
340+
if: always()
341+
run: echo "id=$(date +%s)-$$-$RANDOM" >> $GITHUB_OUTPUT
342+
337343
- name: Upload deployment log
338344
uses: actions/upload-artifact@v4
339345
if: always()
340346
with:
341-
name: mautic-deployment-log-${{ github.run_id }}-${{ github.job }}-${{ strategy.job-index }}
347+
name: mautic-deployment-log-${{ steps.artifact-id.outputs.id }}
342348
path: ./setup-dc.log
343349

344350
- name: Cleanup

0 commit comments

Comments
 (0)