Skip to content

Commit f1d1235

Browse files
committed
ci: updated wf
1 parent d692377 commit f1d1235

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/pull_request.yaml

+7-5
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,19 @@ on:
88
jobs:
99
validate-template-code:
1010
runs-on: ubuntu-latest
11+
1112
steps:
1213
- name: Checkout code
1314
uses: actions/checkout@v4
1415

1516
- name: Install AWS SAM CLI
1617
run: |
17-
pip install aws-sam-cli
18+
pip install --user aws-sam-cli
1819
1920
- name: Validate SAM Templates
2021
run: |
21-
for template in $(find . -name ".yaml" -o -name ".yml"); do
22-
echo "Validating template: $template"
23-
sam validate --template-file "$template" --region us-east-2 --lint
24-
done
22+
for template in $(find . -name "*.yaml" -o -name "*.yml"); do
23+
echo "Validating template: $template"
24+
sam validate --template-file "$template" --region us-east-2 --lint
25+
done
26+
shell: bash

0 commit comments

Comments
 (0)