Skip to content

Commit 0e1bb82

Browse files
committed
fix: Update CI workflow versions to latest
1 parent 06c3cf4 commit 0e1bb82

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/pre-commit.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,7 @@ jobs:
118118
rmz -f /opt/hostedtoolcache/Ruby &
119119
rmz -f /opt/hostedtoolcache/go &
120120
121-
if ${{ github.repository }} == 'terraform-aws-modules/terraform-aws-security-group';
122-
then
121+
if [[ ${{ github.repository }} == terraform-aws-modules/terraform-aws-security-group ]]; then
123122
sudo rmz -f /usr/local/lib/android &
124123
sudo rmz -f /usr/share/dotnet &
125124
sudo rmz -f /usr/local/.ghcup &
@@ -141,6 +140,11 @@ jobs:
141140
id: minMax
142141
uses: clowdhaus/[email protected]
143142

143+
- name: Hide template dir
144+
# Special to this repo, we don't want to check this dir
145+
if: ${{ github.repository == 'terraform-aws-modules/terraform-aws-security-group' }}
146+
run: rm -rf modules/_templates
147+
144148
- name: Pre-commit Terraform ${{ steps.minMax.outputs.maxVersion }}
145149
uses: clowdhaus/terraform-composite-actions/[email protected]
146150
with:

0 commit comments

Comments
 (0)