File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -59,11 +59,15 @@ jobs:
5959 run : |
6060 mkdir -p /tmp/digests
6161 digest="${{ steps.build.outputs.digest }}"
62- touch "/tmp/digests/${digest#sha256:}"
62+ touch "/tmp/digests/${digest#sha256:}"
63+ - name : Prepare artifact name
64+ run : |
65+ name=$(echo -n "${{ matrix.platform }}" | sed -e 's/[ \t:\/\\"<>|*?]/-/g' -e 's/--*/-/g')
66+ echo "ARTIFACT_NAME=$name" >> $GITHUB_ENV
6367 - name : Upload digest
6468 uses : actions/upload-artifact@v4
6569 with :
66- name : digests-${{ matrix.platform }}
70+ name : digests-${{ env.ARTIFACT_NAME }}
6771 path : /tmp/digests/*
6872 if-no-files-found : error
6973 retention-days : 1
@@ -76,11 +80,15 @@ jobs:
7680 - name : REGISTRY_IMAGE
7781 run : |
7882 echo "REGISTRY_IMAGE=ghcr.io/${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
83+ - name : Prepare artifact name
84+ run : |
85+ name=$(echo -n "${{ matrix.platform }}" | sed -e 's/[ \t:\/\\"<>|*?]/-/g' -e 's/--*/-/g')
86+ echo "ARTIFACT_NAME=$name" >> $GITHUB_ENV
7987 - name : Download digests
8088 uses : actions/download-artifact@v4
8189 with :
8290 path : /tmp/digests
83- pattern : digests-${{ matrix.platform }}
91+ pattern : digests-${{ env.ARTIFACT_NAME }}
8492 merge-multiple : ' true'
8593 - name : Set up Docker Buildx
8694 uses : docker/setup-buildx-action@v3
You can’t perform that action at this time.
0 commit comments