Skip to content

πŸ‘· Debug matrix job outputs #3

πŸ‘· Debug matrix job outputs

πŸ‘· Debug matrix job outputs #3

on:

Check failure on line 1 in .github/workflows/debug-context.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/debug-context.yaml

Invalid workflow file

(Line: 17, Col: 14): Unrecognized named-value: 'steps'. Located at position 1 within expression: steps.mystep.outputs, (Line: 17, Col: 14): Unexpected value '${{ steps.mystep.outputs }}'
push:
jobs:
build:
strategy:
matrix:
package: ${{ fromJSON('["a", "b", "c"]') }}
runs-on: ubuntu-latest
steps:
- name: Set digest output
id: mystep
run: |
RAND=$(openssl rand -hex 16)
echo "digest__${{ matrix.package }}=${RAND}" > $GITHUB_OUTPUT
outputs: ${{ steps.mystep.outputs }}
deploy:
runs-on: ubuntu-latest
needs: [build]
steps:
- run: ${{ tojson(needs) }}
shell: cat {0}