File tree Expand file tree Collapse file tree 7 files changed +28
-69
lines changed Expand file tree Collapse file tree 7 files changed +28
-69
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -18,13 +18,19 @@ jobs:
18
18
uses : actions/checkout@v4
19
19
with :
20
20
fetch-depth : 0
21
- - name : Setup Node.js
22
- uses : actions/setup-node@v4
23
- with :
24
- node-version : " lts/*"
25
- - name : Install dependencies
26
- run : npm install
27
- - name : Release
21
+
22
+ - name : fetch tags
23
+ run : git fetch --force --tags
24
+
25
+ - name : install autotag binary
26
+ run : |
27
+ curl -sL https://git.io/autotag-install | sudo sh -s -- -b /usr/local/bin
28
+
29
+ - name : increment tag and create release
30
+ run : |
31
+ set -eou pipefail
32
+
33
+ new_version=$(autotag -vn)
34
+ gh release create v"${new_version}" --target main --title "v${new_version}" --generate-notes
28
35
env :
29
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30
- run : npx semantic-release
36
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 9
9
pass_filenames : false
10
10
stages : ["commit", "push"]
11
11
- repo : https://github.com/pre-commit/pre-commit-hooks
12
- rev : v4.4 .0
12
+ rev : v4.5 .0
13
13
hooks :
14
14
- id : check-merge-conflict
15
15
- id : end-of-file-fixer
16
16
- repo : https://github.com/antonbabenko/pre-commit-terraform
17
- rev : v1.77.1
17
+ rev : v1.83.5
18
18
hooks :
19
19
- id : terraform_fmt
20
20
- id : terraform_validate
@@ -27,10 +27,6 @@ repos:
27
27
args :
28
28
- --args=--config=__GIT_WORKING_DIR__/.tflint.hcl
29
29
- id : terraform_checkov
30
- - id : terraform_tfsec
31
- args :
32
- - --args=--config-file=__GIT_WORKING_DIR__/.tfsec.json
33
- - --args=--tfvars-file="terraform.tfvars"
34
30
- id : infracost_breakdown
35
31
args :
36
32
- --args=--path=.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -28,6 +28,10 @@ I use a wide array of tools to make things easier for me.
28
28
- [ trufflehog] ( https://github.com/trufflesecurity/trufflehog ) : Scans your git
29
29
repo for committed secrets 😱.
30
30
- ` brew install trufflesecurity/trufflehog/trufflehog `
31
+ - [ autotag] ( https://github.com/pantheon-systems/autotag ) : Automatically creates
32
+ git tags based on the commit message. Used to create semantic version tags in
33
+ GitHub Actions pipeline. (Not installed locally, but you could)
34
+ - ` brew install pantheon-systems/autotag/autotag `
31
35
32
36
### Tools needed for the Pre-commit hooks that I use
33
37
@@ -99,8 +103,6 @@ options.
99
103
100
104
` TFLint ` : Review ` .tflint.hcl `
101
105
102
- ` TFSec ` : Review ` .tfsec.yml `
103
-
104
106
` Task ` : Review ` Taskfile.yaml ` and or remove tasks.
105
107
106
108
` Terraform ` : Rename ` terraform.tfvars.example ` to ` terraform.tfvars ` and update.
@@ -114,13 +116,14 @@ The following two lines specify where the `terraform-docs` dynamic content will
114
116
be placed.
115
117
116
118
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
119
+
117
120
## Requirements
118
121
119
- | Name | Version |
120
- | ------| ---------|
121
- | terraform | ~ > 1.0 |
122
- | google | ~ >4.55 |
123
- | hcp | ~ >0.54 |
122
+ | Name | Version |
123
+ | --------- | ------- |
124
+ | terraform | ~ > 1.0 |
125
+ | google | ~ >4.55 |
126
+ | hcp | ~ >0.54 |
124
127
125
128
## Providers
126
129
@@ -141,4 +144,5 @@ No inputs.
141
144
## Outputs
142
145
143
146
No outputs.
147
+
144
148
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
Original file line number Diff line number Diff line change @@ -24,12 +24,6 @@ tasks:
24
24
cmds :
25
25
- pre-commit run -a
26
26
27
- push :
28
- cmds :
29
- - git push
30
- - git tag -s {{.CLI_ARGS}} -m "{{.CLI_ARGS}}"
31
- - git push --tags
32
-
33
27
tag :
34
28
cmds :
35
29
- git push
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments