Skip to content

Commit

Permalink
Try to pass values as json
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-f-cruz committed Dec 20, 2024
1 parent 546ded8 commit c312f36
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/test_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ jobs:
run: |
templates=$(find . -name 'cookiecutter.json' -exec dirname {} \; | paste -sd "," -)
echo "Found templates: $templates"
echo "templates=$templates" >> $GITHUB_OUTPUT
templates_json=$(echo $templates | jq -R -s -c 'split(",")')
echo "templates=$templates_json" >> $GITHUB_OUTPUT
test-templates:
needs: find-templates
runs-on: ubuntu-latest
strategy:
matrix:
template-dir: ${{ fromJson(needs.find-templates.outputs.templates) }}
matrix:
template-dir: ${{ fromJson(needs.find-templates.outputs.templates) }}

steps:
- name: Checkout repository
Expand Down

0 comments on commit c312f36

Please sign in to comment.