@@ -58,10 +58,61 @@ jobs:
5858 id : check_poetry
5959 run : |
6060 if [ -f pyproject.toml ] && grep -q '\[tool.poetry\]' pyproject.toml; then
61+ echo "****************"
62+ echo "Project uses poetry"
63+ echo "****************"
6164 echo "uses_poetry=true" >> $GITHUB_OUTPUT
6265 else
66+ echo "****************"
67+ echo "Project does not use poetry"
68+ echo "****************"
6369 echo "uses_poetry=false" >> $GITHUB_OUTPUT
6470 fi
71+
72+ - name : Check for SAM templates
73+ id : check_sam_templates
74+ run : |
75+ if [ -d "SAMtemplates" ]; then
76+ echo "****************"
77+ echo "Project has SAM templates
78+ echo "****************"
79+ echo "sam_exists=true" >> $GITHUB_OUTPUT
80+ else
81+ echo "****************"
82+ echo "Project does not have SAM templates
83+ echo "****************"
84+ echo "sam_exists=false" >> $GITHUB_OUTPUT
85+ fi
86+
87+ - name : Check for cloudformation templates
88+ id : check_cf_templates
89+ run : |
90+ if [ -d "cloudformation" ]; then
91+ echo "****************"
92+ echo "Project has cloudformation templates
93+ echo "****************"
94+ echo "cf_exists=true" >> $GITHUB_OUTPUT
95+ else
96+ echo "****************"
97+ echo "Project does not have cloudformation templates
98+ echo "****************"
99+ echo "cf_exists=false" >> $GITHUB_OUTPUT
100+ fi
101+
102+ - name : Check for cdk
103+ id : check_cdk
104+ run : |
105+ if [ -d "packages/cdk" ]; then
106+ echo "****************"
107+ echo "Project has cdk
108+ echo "****************"
109+ echo "cdk_exists=true" >> $GITHUB_OUTPUT
110+ else
111+ echo "****************"
112+ echo "Project does not have cdk
113+ echo "****************"
114+ echo "cdk_exists=false" >> $GITHUB_OUTPUT
115+ fi
65116
66117 - name : Check licenses (Python)
67118 if : steps.check_poetry.outputs.uses_poetry == 'true'
@@ -99,33 +150,6 @@ jobs:
99150 node_modules
100151 .git
101152
102- - name : Check for SAM templates
103- id : check_sam_templates
104- run : |
105- if [ -d "SAMtemplates" ]; then
106- echo "sam_exists=true" >> $GITHUB_OUTPUT
107- else
108- echo "sam_exists=false" >> $GITHUB_OUTPUT
109- fi
110-
111- - name : Check for cloudformation templates
112- id : check_cf_templates
113- run : |
114- if [ -d "cloudformation" ]; then
115- echo "cf_exists=true" >> $GITHUB_OUTPUT
116- else
117- echo "cf_exists=false" >> $GITHUB_OUTPUT
118- fi
119-
120- - name : Check for cdk
121- id : check_cdk
122- run : |
123- if [ -d "packages/cdk" ]; then
124- echo "cdk_exists=true" >> $GITHUB_OUTPUT
125- else
126- echo "cdk_exists=false" >> $GITHUB_OUTPUT
127- fi
128-
129153 - name : Run cfn-lint
130154 if : steps.check_sam_templates.outputs.exists == 'true' || steps.check_cf_templates.outputs.exists == 'true'
131155 run : |
0 commit comments