Skip to content

Commit 82e0740

Browse files
committed
👷 Github Action artifact download bug workaround
1 parent 3cb48df commit 82e0740

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/dev.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,12 @@ jobs:
315315

316316
# Download all artifacts from the 4 Docker image builds
317317
- uses: actions/download-artifact@v4
318+
with:
319+
# `pattern:` is a workaround to an artifact upload incompatibility with docker/build-push-action@v6
320+
# Otherwise, without `pattern:` the default of all artifacts would occur just as with this glob
321+
# https://github.com/docker/build-push-action/issues/1167
322+
pattern: "madsciencelab*"
323+
path: artifacts
318324

319325
# Capture the SHA string
320326
- name: 'Git commit short SHA as environment variable'
@@ -329,5 +335,4 @@ jobs:
329335
commit: ${{ github.sha }}
330336
tag: ${{ env.SHA_SHORT }}
331337
name: Prerelease-${{ env.SHA_SHORT }}
332-
artifacts: "**/Dockerfile,**/welcome"
333-
338+
artifacts: "artifacts/**/Dockerfile,artifacts/**/welcome"

0 commit comments

Comments
 (0)