Skip to content

Commit 838a230

Browse files
committed
use output
1 parent b7cc7b8 commit 838a230

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
generate-cdk-version-matrix:
2727
runs-on: ubuntu-latest
2828
outputs:
29-
matrix: ${{ steps.set-matrix.env.MATRIX }}
29+
matrix: ${{ steps.set-matrix.outputs.matrix }}
3030
steps:
3131
- name: Use Node.js ${{ inputs.node-version }}
3232
uses: actions/setup-node@v2
@@ -36,8 +36,9 @@ jobs:
3636
id: set-matrix
3737
run: |
3838
VERSIONS_ARRAY=$(npm show aws-cdk time --json --silent| jq 'del(.created, .modified) | keys' -c)
39-
echo "MATRIX={\"cdk-version\":$( echo "$VERSIONS_ARRAY" )}" >> $GITHUB_ENV
40-
echo $MATRIX
39+
echo "MATRIX={\"cdk-version\":$( echo "$VERSIONS_ARRAY" )}"
40+
echo "::set-output name=matrix::$MATRIX"
41+
4142

4243
version-testing:
4344
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)