Skip to content

Commit e8d7357

Browse files
committed
use output
1 parent 838a230 commit e8d7357

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 4 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.outputs.matrix }}
29+
matrix: ${{ steps.set-matrix.env.MATRIX }}
3030
steps:
3131
- name: Use Node.js ${{ inputs.node-version }}
3232
uses: actions/setup-node@v2
@@ -35,9 +35,8 @@ jobs:
3535
- name: Obtain aws-cdk versions
3636
id: set-matrix
3737
run: |
38-
VERSIONS_ARRAY=$(npm show aws-cdk time --json --silent| jq 'del(.created, .modified) | keys' -c)
39-
echo "MATRIX={\"cdk-version\":$( echo "$VERSIONS_ARRAY" )}"
40-
echo "::set-output name=matrix::$MATRIX"
38+
VERSIONS_ARRAY=$(npm show aws-cdk time --json | jq 'del(.created, .modified) | keys' -c)
39+
echo "MATRIX={\"cdk-version\":$( echo "$VERSIONS_ARRAY" )}" >> $GITHUB_ENV
4140
4241

4342
version-testing:

0 commit comments

Comments
 (0)