Skip to content

Commit ef8ea49

Browse files
committed
👷 Debug matrix job outputs
1 parent 61b1af1 commit ef8ea49

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
on:
2+
push:
3+
4+
jobs:
5+
build:
6+
strategy:
7+
matrix:
8+
package: ${{ fromJSON('["a", "b", "c"]') }}
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Set digest output
12+
id: mystep
13+
run: |
14+
RAND=$(openssl rand -hex 16)
15+
echo "digest__${{ matrix.package }}=${RAND}" > $GITHUB_OUTPUT
16+
17+
outputs: ${{ steps.mystep.outputs }}
18+
19+
deploy:
20+
runs-on: ubuntu-latest
21+
needs: [build]
22+
steps:
23+
- run: ${{ tojson(needs) }}
24+
shell: cat {0}

0 commit comments

Comments
 (0)