Skip to content

Commit

Permalink
Configure GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
tkcreateit committed Jun 7, 2024
1 parent e44a11c commit 80f6efa
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,11 @@ jobs:
files: '**/*.sh'
files_ignore: 'parts/**'
matrix: true
- name: If no changed recipes then execute for the default one
id: set-matrix
run: |
files="${{ steps.changed-files.outputs.all_changed_files }}"
echo "files=$files"
matrix=$(echo "$files" | jq -nc 'if length == 0 then ["scripts/default.sh"] else . end')
echo "matrix=$matrix"
echo "matrix=$matrix" >> $GITHUB_OUTPUT

build:
needs: [ changed-files ]
runs-on: ubuntu-latest
if: needs.changed-files.outputs.matrix != '[]'
strategy:
matrix:
files: ${{ fromJSON(needs.changed-files.outputs.matrix) }}
Expand Down

0 comments on commit 80f6efa

Please # to comment.