Skip to content

Commit

Permalink
Read YAML into JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
lloeki committed Jun 26, 2024
1 parent ec7ddb9 commit 73d98ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/test-callable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ on:
jobs:
matrix:
runs-on: ubuntu-latest
container:
image: "ghcr.io/datadog/images-rb/engines/ruby:3.3"
name: Prepare matrix
outputs:
matrix: ${{ steps.matrix.outputs.matrix }}
Expand All @@ -21,7 +23,7 @@ jobs:
- name: Compute matrix
id: matrix
run: |
echo "matrix=$(cat matrix.yml)" >> $GITHUB_OUTPUT
echo "matrix=$(ruby -ryaml -rjson -e 'puts JSON.dump(YAML.load(File.read("matrix.yml")))')" >> $GITHUB_OUTPUT
test:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 73d98ff

Please sign in to comment.