Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Rockwood <[email protected]>
  • Loading branch information
benr committed Sep 26, 2023
1 parent 9400670 commit 4f173fb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/providers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ jobs:
- name: Detect providers
id: providers
run: |
find providers -mindepth 1 -maxdepth 1 -type d -exec basename {} \; > providers.list
echo "providers=$(cat providers.list | tr '\n' ',')" >> $GITHUB_OUTPUT
providers=$(find providers -mindepth 1 -maxdepth 1 -type d -exec basename {} \;)
printf '%s\n' "${providers[@]}" | jq -R . | jq -sc . > providers.json
echo "providers=$(cat providers.json)" >> $GITHUB_OUTPUT
echo "Providers detected:"
cat providers.list
echo $providers
provider-build:
name: "${{ matrix.provider }}"
Expand All @@ -45,7 +47,7 @@ jobs:
strategy:
max-parallel: 2
matrix:
provider: [ ${{ needs.scoping.outputs.providers }} ]
provider: ${{ fromJSON(needs.scoping.outputs.providers) }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit 4f173fb

Please sign in to comment.