Skip to content

Commit 0a02b4c

Browse files
committed
fix: Update CI workflow versions to latest
1 parent 809d7d6 commit 0a02b4c

File tree

8 files changed

+100
-31
lines changed

8 files changed

+100
-31
lines changed

.github/workflows/pr-title.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
# Please look up the latest version from
1616
# https://github.com/amannn/action-semantic-pull-request/releases
17-
- uses: amannn/action-semantic-pull-request@v5.5.3
17+
- uses: amannn/action-semantic-pull-request@v6.1.1
1818
env:
1919
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2020
with:

.github/workflows/pre-commit.yml

Lines changed: 73 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ on:
77
- master
88

99
env:
10-
TERRAFORM_DOCS_VERSION: v0.19.0
11-
TFLINT_VERSION: v0.53.0
10+
TERRAFORM_DOCS_VERSION: v0.20.0
11+
TFLINT_VERSION: v0.59.1
1212

1313
jobs:
1414
collectInputs:
@@ -18,11 +18,11 @@ jobs:
1818
directories: ${{ steps.dirs.outputs.directories }}
1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@v5
2222

2323
- name: Get root directories
2424
id: dirs
25-
uses: clowdhaus/terraform-composite-actions/directories@v1.9.0
25+
uses: clowdhaus/terraform-composite-actions/directories@v1.14.0
2626

2727
preCommitMinVersions:
2828
name: Min TF pre-commit
@@ -32,27 +32,56 @@ jobs:
3232
matrix:
3333
directory: ${{ fromJson(needs.collectInputs.outputs.directories) }}
3434
steps:
35+
- name: Install rmz
36+
uses: jaxxstorm/[email protected]
37+
with:
38+
repo: SUPERCILEX/fuc
39+
asset-name: x86_64-unknown-linux-gnu-rmz
40+
rename-to: rmz
41+
chmod: 0755
42+
extension-matching: disable
43+
3544
# https://github.com/orgs/community/discussions/25678#discussioncomment-5242449
36-
- name: Delete huge unnecessary tools folder
45+
- name: Delete unnecessary files
3746
run: |
38-
rm -rf /opt/hostedtoolcache/CodeQL
39-
rm -rf /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk
40-
rm -rf /opt/hostedtoolcache/Ruby
41-
rm -rf /opt/hostedtoolcache/go
47+
formatByteCount() { echo $(numfmt --to=iec-i --suffix=B --padding=7 $1'000'); }
48+
getAvailableSpace() { echo $(df -a $1 | awk 'NR > 1 {avail+=$4} END {print avail}'); }
49+
50+
BEFORE=$(getAvailableSpace)
51+
52+
ln -s /opt/hostedtoolcache/SUPERCILEX/x86_64-unknown-linux-gnu-rmz/latest/linux-x64/rmz /usr/local/bin/rmz
53+
rmz -f /opt/hostedtoolcache/CodeQL &
54+
rmz -f /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk &
55+
rmz -f /opt/hostedtoolcache/PyPy &
56+
rmz -f /opt/hostedtoolcache/Ruby &
57+
rmz -f /opt/hostedtoolcache/go &
58+
59+
if ${{ github.repository }} == 'terraform-aws-modules/terraform-aws-iam';
60+
then
61+
sudo rmz -f /usr/local/lib/android &
62+
sudo rmz -f /usr/share/dotnet &
63+
sudo rmz -f /usr/local/.ghcup &
64+
fi
65+
66+
wait
67+
68+
AFTER=$(getAvailableSpace)
69+
SAVED=$((AFTER-BEFORE))
70+
echo "=> Saved $(formatByteCount $SAVED)"
4271
4372
- name: Checkout
44-
uses: actions/checkout@v4
73+
uses: actions/checkout@v5
4574

4675
- name: Terraform min/max versions
4776
id: minMax
48-
uses: clowdhaus/terraform-min-max@v1.3.1
77+
uses: clowdhaus/terraform-min-max@v2.1.0
4978
with:
5079
directory: ${{ matrix.directory }}
5180

5281
- name: Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }}
5382
# Run only validate pre-commit check on min version supported
5483
if: ${{ matrix.directory != '.' }}
55-
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.11.1
84+
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.14.0
5685
with:
5786
terraform-version: ${{ steps.minMax.outputs.minVersion }}
5887
tflint-version: ${{ env.TFLINT_VERSION }}
@@ -61,7 +90,7 @@ jobs:
6190
- name: Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }}
6291
# Run only validate pre-commit check on min version supported
6392
if: ${{ matrix.directory == '.' }}
64-
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.11.1
93+
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.14.0
6594
with:
6695
terraform-version: ${{ steps.minMax.outputs.minVersion }}
6796
tflint-version: ${{ env.TFLINT_VERSION }}
@@ -72,26 +101,49 @@ jobs:
72101
runs-on: ubuntu-latest
73102
needs: collectInputs
74103
steps:
104+
- name: Install rmz
105+
uses: jaxxstorm/[email protected]
106+
with:
107+
repo: SUPERCILEX/fuc
108+
asset-name: x86_64-unknown-linux-gnu-rmz
109+
rename-to: rmz
110+
chmod: 0755
111+
extension-matching: disable
112+
75113
# https://github.com/orgs/community/discussions/25678#discussioncomment-5242449
76-
- name: Delete huge unnecessary tools folder
114+
- name: Delete unnecessary files
77115
run: |
78-
rm -rf /opt/hostedtoolcache/CodeQL
79-
rm -rf /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk
80-
rm -rf /opt/hostedtoolcache/Ruby
81-
rm -rf /opt/hostedtoolcache/go
116+
formatByteCount() { echo $(numfmt --to=iec-i --suffix=B --padding=7 $1'000'); }
117+
getAvailableSpace() { echo $(df -a $1 | awk 'NR > 1 {avail+=$4} END {print avail}'); }
118+
119+
BEFORE=$(getAvailableSpace)
120+
121+
ln -s /opt/hostedtoolcache/SUPERCILEX/x86_64-unknown-linux-gnu-rmz/latest/linux-x64/rmz /usr/local/bin/rmz
122+
sudo rmz -f /usr/share/dotnet &
123+
sudo rmz -f /usr/local/.ghcup &
124+
rmz -f /opt/hostedtoolcache/CodeQL &
125+
rmz -f /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk &
126+
rmz -f /opt/hostedtoolcache/PyPy &
127+
rmz -f /opt/hostedtoolcache/Ruby &
128+
rmz -f /opt/hostedtoolcache/go &
129+
wait
130+
131+
AFTER=$(getAvailableSpace)
132+
SAVED=$((AFTER-BEFORE))
133+
echo "=> Saved $(formatByteCount $SAVED)"
82134
83135
- name: Checkout
84-
uses: actions/checkout@v4
136+
uses: actions/checkout@v5
85137
with:
86138
ref: ${{ github.event.pull_request.head.ref }}
87139
repository: ${{github.event.pull_request.head.repo.full_name}}
88140

89141
- name: Terraform min/max versions
90142
id: minMax
91-
uses: clowdhaus/terraform-min-max@v1.3.1
143+
uses: clowdhaus/terraform-min-max@v2.1.0
92144

93145
- name: Pre-commit Terraform ${{ steps.minMax.outputs.maxVersion }}
94-
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.11.1
146+
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.14.0
95147
with:
96148
terraform-version: ${{ steps.minMax.outputs.maxVersion }}
97149
tflint-version: ${{ env.TFLINT_VERSION }}

.github/workflows/release.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,27 @@ jobs:
2020
if: github.repository_owner == 'terraform-aws-modules'
2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@v4
23+
uses: actions/checkout@v5
2424
with:
2525
persist-credentials: false
2626
fetch-depth: 0
2727

28+
- name: Set correct Node.js version
29+
uses: actions/setup-node@v6
30+
with:
31+
node-version: 24
32+
33+
- name: Install dependencies
34+
run: |
35+
npm install \
36+
@semantic-release/[email protected] \
37+
@semantic-release/[email protected] \
38+
39+
2840
- name: Release
29-
uses: cycjimmy/semantic-release-action@v4
41+
uses: cycjimmy/semantic-release-action@v5
3042
with:
31-
semantic_version: 23.0.2
32-
extra_plugins: |
33-
@semantic-release/[email protected]
34-
@semantic-release/[email protected]
35-
43+
semantic_version: 25.0.0
44+
working_directory: docs/
3645
env:
3746
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}

.github/workflows/stale-actions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
stale:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/stale@v9
10+
- uses: actions/stale@v10
1111
with:
1212
repo-token: ${{ secrets.GITHUB_TOKEN }}
1313
# Staling issues and PR's

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,11 @@ override.tf.json
2727
# Ignore CLI configuration files
2828
.terraformrc
2929
terraform.rc
30+
31+
# Lambda build artifacts
32+
builds/
33+
__pycache__/
34+
*.zip
35+
36+
.DS_Store
37+
.idea

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.100.0
3+
rev: v1.103.0
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_wrapper_module_for_each
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)