Skip to content

Commit 853c351

Browse files
committed
github: use unique id for artifacts uploaded to workflow
This is a breaking change in v4. Use a quick workaround of using the strategy index so that we don't need to pass name from one step of the job to the other.
1 parent f5cea66 commit 853c351

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/push-docker-image.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
- name: Upload digest
6868
uses: actions/upload-artifact@v4
6969
with:
70-
name: digests${{ inputs.artifact_name }}
70+
name: digests-${{ inputs.artifact_name }}-${{ strategy.job-index }}
7171
path: /tmp/digests/*
7272
if-no-files-found: error
7373
retention-days: 1
@@ -77,10 +77,15 @@ jobs:
7777
needs:
7878
- build
7979
steps:
80-
- name: Download digests
80+
- name: Download digest 0
8181
uses: actions/download-artifact@v4
8282
with:
83-
name: digests${{ inputs.artifact_name }}
83+
name: digests-${{ inputs.artifact_name }}-0
84+
path: /tmp/digests
85+
- name: Download digest 1
86+
uses: actions/download-artifact@v4
87+
with:
88+
name: digests-${{ inputs.artifact_name }}-1
8489
path: /tmp/digests
8590
- name: Set up Docker Buildx
8691
uses: docker/setup-buildx-action@v3

0 commit comments

Comments
 (0)