Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Nov 22, 2023
1 parent 917bdb6 commit bbc8b76
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ jobs:
- os: macOS-latest
arch: x86
steps:
- run: echo '${{ toJSON(matrix || '') }}' | jq -r '[.[]] | join("-")'
shell: bash
- run: echo '${{ toJSON(matrix || '') }}' | jq -r 'to_entries | map("\(.key)=\(.value)") | join("-")' | read mat | (echo "matrix-string=$mat" >> $GITHUB_OUTPUT)
- run: echo '${{ toJSON(matrix || '') }}' | jq -r 'to_entries | map("\(.key)=\(.value)") | "matrix-string=" + join("-")' >> $GITHUB_OUTPUT)
id: foo
shell: bash
- run: echo "${{ steps.foo.outputs.matrix-string }}"
Expand Down

0 comments on commit bbc8b76

Please sign in to comment.