9696 echo "****************"
9797 echo "Project does not have cloudformation templates"
9898 echo "****************"
99- echo "cfexists =false" >> $GITHUB_OUTPUT
99+ echo "cf_exists =false" >> $GITHUB_OUTPUT
100100 fi
101101
102102 - name : Check for cdk
@@ -151,7 +151,7 @@ jobs:
151151 .git
152152
153153 - name : Run cfn-lint
154- if : steps.check_sam_templates.outputs.exists == 'true' || steps.check_cf_templates.outputs.exists == 'true'
154+ if : steps.check_sam_templates.outputs.sam_exists == 'true' || steps.check_cf_templates.outputs.cf_exists == 'true'
155155 run : |
156156 pip install cfn-lint
157157 cfn-lint -I "cloudformation/**/*.y*ml" 2>&1 | awk '/Run scan/ { print } /^[EW][0-9]/ { print; getline; print }'
@@ -161,12 +161,12 @@ jobs:
161161 run : make test
162162
163163 - name : Run cdk-synth
164- if : steps.check_cdk.outputs.exists == 'true'
164+ if : steps.check_cdk.outputs.cdk_exists == 'true'
165165 run : |
166166 make cdk-synth
167167
168168 - name : Install AWS SAM CLI
169- if : steps.check_sam_templates.outputs.exists == 'true'
169+ if : steps.check_sam_templates.outputs.sam_exists == 'true'
170170 run : |
171171 pip install aws-sam-cli
172172
@@ -186,7 +186,7 @@ jobs:
186186 mkdir -p cfn_guard_output
187187
188188 - name : Run cfn-guard script for sam templates
189- if : steps.check_sam_templates.outputs.exists == 'true'
189+ if : steps.check_sam_templates.outputs.sam_exists == 'true'
190190 run : |
191191 #!/usr/bin/env bash
192192 set -eou pipefail
@@ -211,7 +211,7 @@ jobs:
211211 done
212212
213213 - name : Run cfn-guard script for cloudformation templates
214- if : steps.check_cf_templates.outputs.exists == 'true'
214+ if : steps.check_cf_templates.outputs.cf_exists == 'true'
215215 run : |
216216 #!/usr/bin/env bash
217217
@@ -228,7 +228,7 @@ jobs:
228228 done
229229
230230 - name : Run cfn-guard script for cdk templates
231- if : steps.check_cdk.outputs.exists == 'true'
231+ if : steps.check_cdk.outputs.cdk_exists == 'true'
232232 run : |
233233 #!/usr/bin/env bash
234234
0 commit comments