File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 find-recipes :
77 runs-on : ubuntu-latest
88 outputs :
9- matrix : ${{ steps.set-matrix .outputs.matrix }}
9+ packages : ${{ steps.find-recipes .outputs.packages }}
1010
1111 steps :
1212 - name : Checkout Repository
@@ -19,26 +19,46 @@ jobs:
1919 format : ' json'
2020
2121 - name : Find recipe.yaml files
22+ id : find-recipes
2223 run : |
2324 changed=$(jq -c '[.[] | match("custom-recipes/recipes/([^/]*)/recipe.yaml") | .captures | .[].string]' <<< '${{steps.changed.outputs.added_modified}}')
2425 changed=$(echo $changed | sed "s/\"//g")
25- echo matrix= $changed
26- echo "matrix= $changed" >> "$GITHUB_OUTPUT"
26+ echo "packages=\" $changed\""
27+ echo "packages=\" $changed\" " >> "$GITHUB_OUTPUT"
2728
28- build :
29+ buildc :
30+ needs : find-recipes
31+ runs-on : ubuntu-latest
32+
33+ steps :
34+ - name : Foo
35+ run : |
36+ echo "${{needs.find-recipes.outputs.packages}}"
37+ echo "package: ${{fromJson(needs.find-recipes.outputs.packages)}}"
38+
39+
40+ builda :
2941 needs : find-recipes
3042 runs-on : ubuntu-latest
3143 strategy :
3244 matrix :
33- package : ${{fromJson(needs.find-recipes.outputs.matrix)}}
34- # package: ${{needs.find-recipes.outputs.matrix}}
35- # package: ${{ needs.find-recipes.outputs.* }}
45+ package : ${{fromJson(needs.find-recipes.outputs.packages)}}
3646
3747 steps :
38- - name : Checkout Repository
39- uses : actions/checkout@v2
40-
4148 - name : Foo
4249 run : |
43- echo ${{ matrix.package }}
50+ echo "${{needs.find-recipes.outputs.packages}}"
51+ echo "${{ matrix.packages }}"
4452
53+ buildb :
54+ needs : find-recipes
55+ runs-on : ubuntu-latest
56+ strategy :
57+ matrix :
58+ package : ${{needs.find-recipes.outputs.packages}}
59+
60+ steps :
61+ - name : Foo
62+ run : |
63+ echo "${{needs.find-recipes.outputs.packages}}"
64+ echo "${{ matrix.packages }}"
You can’t perform that action at this time.
0 commit comments