Skip to content

Commit aa062a5

Browse files
committed
fix workflow
1 parent e42a6df commit aa062a5

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/build_and_push_images.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ jobs:
3131
upload-separately:
3232
needs: build
3333
runs-on: ubuntu-latest
34+
# ✅ matrix 必须在 job 层
35+
strategy:
36+
matrix:
37+
filename: ${{ fromJson(steps.list_files.outputs.files_json) }}
3438
steps:
3539
- uses: actions/download-artifact@v4
3640
with:
@@ -48,12 +52,6 @@ jobs:
4852
echo "files_json=$(printf '%s\n' "${files[@]}" | jq -R . | jq -s .)" >> $GITHUB_OUTPUT
4953
fi
5054
51-
# ✅ matrix 必须在 job 层
52-
strategy:
53-
matrix:
54-
filename: ${{ fromJson(steps.list_files.outputs.files_json) }}
55-
56-
steps:
5755
- name: Set up
5856
run: echo "Uploading ${{ matrix.filename }}"
5957

0 commit comments

Comments
 (0)