π· Debug matrix job outputs #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
jobs: | |
build: | |
strategy: | |
matrix: | |
package: ${{ fromJSON('["A", "B", "C"]') }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set digest output | |
run: | | |
RAND=$(openssl rand -hex 16) | |
echo "digest=${PACKAGE}@${RAND}" > $GITHUB_OUTPUT | |
id: mystep | |
env: | |
package: ${{ matrix.package }} | |
outputs: | |
digest: ${{ steps.mystep.outputs.digest || '' }} | |
deploy: | |
runs-on: ubuntu-latest | |
needs: [build] | |
steps: | |
- run: ${{ tojson(needs) }} | |
shell: cat {0} |