Skip to content

Commit 01afcdb

Browse files
committed
Better no fail if no digests
I guess, the pwd is still done even if the step wouldn't execute
1 parent f6b03c7 commit 01afcdb

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/nightly.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,12 @@ jobs:
152152
- name: Download digests
153153
uses: actions/download-artifact@v4
154154
with:
155-
path: digests
155+
path: /tmp/digests
156156
pattern: digests-${{ matrix.variant }}-*
157157
merge-multiple: true
158+
159+
- name: Create folder if not exists
160+
run: mkdir -p /tmp/digests
158161

159162
- name: Set up Docker Buildx
160163
uses: docker/setup-buildx-action@v3
@@ -176,8 +179,8 @@ jobs:
176179
password: ${{ github.token }}
177180

178181
- name: Create manifest list and push
179-
if: (github.event_name == 'schedule' || inputs.push == true) && ${{ hashFiles('digests/') != '' }}
180-
working-directory: digests
182+
if: github.event_name == 'schedule' || inputs.push == true
183+
working-directory: /tmp/digests
181184
run: |
182185
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
183186
$(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)

0 commit comments

Comments
 (0)