Skip to content

Commit cf61481

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

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
run: |
13+
RAND=$(openssl rand -hex 16)
14+
echo "digest=${PACKAGE}@${RAND}" > $GITHUB_OUTPUT
15+
id: mystep
16+
env:
17+
package: ${{ matrix.package }}
18+
outputs:
19+
digest: ${{ steps.mystep.outputs.digest || '' }}
20+
21+
deploy:
22+
runs-on: ubuntu-latest
23+
needs: [build]
24+
steps:
25+
- run: ${{ tojson(needs) }}
26+
shell: cat {0}

0 commit comments

Comments
 (0)