Skip to content

Commit 79ac0d2

Browse files
committed
fix: Task file and release action standardization
Signed-off-by: Michael Ethridge <[email protected]>
1 parent bed4e55 commit 79ac0d2

File tree

3 files changed

+30
-7
lines changed

3 files changed

+30
-7
lines changed

.github/workflows/main-release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Module release
1+
name: Tag and Release
22
on:
33
push:
44
branches:
@@ -10,7 +10,7 @@ permissions:
1010
pull-requests: write
1111

1212
jobs:
13-
release-module:
13+
tag-release:
1414
name: Release
1515
runs-on: ubuntu-latest
1616
steps:
@@ -30,7 +30,7 @@ jobs:
3030
run: |
3131
set -eou pipefail
3232
33-
new_version=$(autotag -vn)
33+
new_version=$(autotag -vn --scheme=conventional)
3434
gh release create v"${new_version}" --target main --title "v${new_version}" --generate-notes
3535
env:
3636
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.tflint.hcl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,21 @@ plugin "terraform" {
22
enabled = true
33
preset = "all"
44
}
5+
6+
plugin "aws" {
7+
enabled = true
8+
version = "0.28.0"
9+
source = "github.com/terraform-linters/tflint-ruleset-aws"
10+
}
11+
12+
plugin "azurerm" {
13+
enabled = true
14+
version = "0.25.1"
15+
source = "github.com/terraform-linters/tflint-ruleset-azurerm"
16+
}
17+
18+
plugin "google" {
19+
enabled = true
20+
version = "0.26.0"
21+
source = "github.com/terraform-linters/tflint-ruleset-google"
22+
}

Taskfile.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,24 @@ vars:
1111
tasks:
1212
default:
1313
cmds:
14-
- git add .
15-
- git commit -m "{{.CURRENT_DATE}}"
16-
- git push
17-
silent: true
14+
- task: pre
1815

1916
hog:
2017
cmds:
2118
- trufflehog git file://. --since-commit HEAD --only-verified --fail
2219

2320
pre:
2421
cmds:
22+
- pre-commit autoupdate
2523
- pre-commit run -a
2624

25+
push:
26+
cmds:
27+
- git add .
28+
- git commit -m "{{.CURRENT_DATE}}"
29+
- git push
30+
silent: true
31+
2732
tag:
2833
cmds:
2934
- git push

0 commit comments

Comments
 (0)