Skip to content

Commit

Permalink
Update preflight
Browse files Browse the repository at this point in the history
  • Loading branch information
mitul01 committed Nov 28, 2024
1 parent c8a1369 commit 40b8a1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
PR_NUMBER=${{ github.event.pull_request.number }}
echo $PR_NUMBER
FILES=$(gh pr view $PR_NUMBER --json files -q '.files[].path')
echo "$FILES" | grep '\.tf$' | sed 's|/[^/]*$||' | sort -u | jq -R -s -c 'split("\n") | map(select(length > 0))' > changed_dirs.json
echo "$FILES" | grep '^projects/.*\.tf$' | sed 's|/[^/]*$||' | sort -u | jq -R -s -c 'split("\n") | map(select(length > 0))' > changed_dirs.json
cat changed_dirs.json
echo "dirs=$(cat changed_dirs.json)" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 40b8a1a

Please sign in to comment.