Skip to content

ci: bop

ci: bop #7

Workflow file for this run

name: Build Packages
on: [push, pull_request]
jobs:
find-recipes:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Get Changed Files
id: changed
uses: jitterbit/get-changed-files@v1
with:
format: 'json'
- name: Find recipe.yaml files
run: |
changed=$(jq '[.[] | select(. | contains("recipe.yaml"))]' <<< '${{steps.changed.outputs.added_modified}}')
echo $changed
echo "matrix=\"$changed\"" >> "$GITHUB_OUTPUT"
build:
needs: find-recipes
runs-on: ubuntu-latest
strategy:
matrix:
package: ${{fromJson(needs.find-recipes.outputs.matrix)}}
# package: ${{ needs.find-recipes.outputs.* }}
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Foo
run: |
echo ${{ matrix.package }}