File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 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
@@ -35,10 +35,10 @@ jobs:
3535 - name : Obtain aws-cdk versions
3636 id : set-matrix
3737 run : |
38- VERSIONS_ARRAY=$(npm show aws-cdk time --json | jq 'del(.created, .modified) | keys' -c)
38+ #VERSIONS_ARRAY=$(npm show aws-cdk time --json | jq 'del(.created, .modified) | keys' -c)
39+ VERSIONS_ARRAY=$(npm view aws-cdk versions --json | jq 'sort_by( [ split(".") | .[] | tonumber ] ) | .[-10:]' -c)
3940 MATRIX="{\"cdk-version\":$VERSIONS_ARRAY}"
40- #echo "MATRIX=$MATRIX" >> $GITHUB_ENV
41- echo "MATRIX=$MATRIX" | tee -a $GITHUB_ENV
41+ echo "MATRIX=$MATRIX" >> $GITHUB_OUTPUT
4242
4343
4444 version-testing :
You can’t perform that action at this time.
0 commit comments