diff --git a/.github/workflows/bench-aws.yml b/.github/workflows/bench-aws.yml index d02623d38..b90fd1466 100644 --- a/.github/workflows/bench-aws.yml +++ b/.github/workflows/bench-aws.yml @@ -22,21 +22,18 @@ jobs: run: | set -ex if [ "$TRIGGER" = 'push' ]; then - echo 'type=["localhost"]' >> "$GITHUB_OUTPUT" - echo 'include=[{"type": "localhost", "ntasks":100, "polling-limit": 300}]' >> "$GITHUB_OUTPUT" + echo '{"include":[{"type": "localhost", "ntasks":100, "polling-limit": 300}]}' > matrix.json elif [ "$TRIGGER" = 'release' ]; then - echo 'type=["localhost", "aws"]' >> "$GITHUB_OUTPUT" - echo 'include=[{"type": "localhost", "ntasks":100, "polling-limit": 300}, {"type": "aws", "ntasks":1000, "polling-limit": 600}]' >> "$GITHUB_OUTPUT" + echo '{"include":[{"type": "localhost", "ntasks":100, "polling-limit": 300}, {"type": "aws", "ntasks":1000, "polling-limit": 600}]}' > matrix.json fi + echo "::set-output name=matrix::$(cat matrix.json)" test-matrix: name: Test matrix runs-on: ubuntu-latest needs: define-matrix strategy: fail-fast: false - matrix: - type: ${{ fromJSON(needs.define-matrix.outputs.type) }} - include: ${{ fromJSON(needs.define-matrix.outputs.include) }} + matrix: ${{ fromJSON(needs.define-matrix.outputs.matrix) }} steps: - id: test name: Test matrix