Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kaznak committed Jan 1, 2025
1 parent b1e49a6 commit 4c8cd0b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,15 @@ jobs:
- name: Extract Target strategy.json
run: |
if grep -q '^\.github' changed-dirs.lst ; then
ls */*/strategy.json
# if workflow file changed.
find . -type f -name strategy.json
elif [ "${{ github.event_name }}" = "schedule" ] ; then
# if scheduler dispatched.
find . -type f -name strategy.json
else
# scan the changed directories
grep -Ev '^\.(github|vscode)' changed-dirs.lst \
| awk '{ print $0 "/strategy.json" }' \
| xargs --no-run-if-empty ls \
| xargs --no-run-if-empty I% find % -type f -name strategy.json \
|| true
fi \
| tee target-strategy.lst
Expand Down

0 comments on commit 4c8cd0b

Please sign in to comment.