Skip to content

Commit 27e1735

Browse files
committed
ci: update pr workflow
1 parent 398830f commit 27e1735

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/pull_request.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
2020
- name: Validate SAM Templates
2121
run: |
22-
for template in $(find . -name "*.yaml" -o -name "*.yml" -not -path "./.github/*"); do
23-
echo "Validating template: $template"
24-
sam validate --template-file "$template" --region us-east-2 --lint
25-
done
22+
find . -path "./.github" -prune -o \( -name "*.yaml" -o -name "*.yml" \) -print0 | while IFS= read -r -d '' template; do
23+
echo "Validating template: $template"
24+
sam validate --template-file "$template" --region us-east-2 --lint
25+
done
2626
shell: bash

0 commit comments

Comments
 (0)