File tree Expand file tree Collapse file tree 5 files changed +43
-10
lines changed Expand file tree Collapse file tree 5 files changed +43
-10
lines changed Original file line number Diff line number Diff line change 8
8
lock :
9
9
runs-on : ubuntu-latest
10
10
steps :
11
- - uses : dessant/lock-threads@v3
11
+ - uses : dessant/lock-threads@v4
12
12
with :
13
13
github-token : ${{ secrets.GITHUB_TOKEN }}
14
14
issue-comment : >
Original file line number Diff line number Diff line change 8
8
9
9
env :
10
10
TERRAFORM_DOCS_VERSION : v0.16.0
11
+ TFLINT_VERSION : v0.44.1
11
12
12
13
jobs :
13
14
collectInputs :
46
47
uses : clowdhaus/terraform-composite-actions/pre-commit@v1.8.3
47
48
with :
48
49
terraform-version : ${{ steps.minMax.outputs.minVersion }}
50
+ tflint-version : ${{ env.TFLINT_VERSION }}
49
51
args : ' terraform_validate --color=always --show-diff-on-failure --files ${{ matrix.directory }}/*'
50
52
51
53
- name : Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }}
54
56
uses : clowdhaus/terraform-composite-actions/pre-commit@v1.8.3
55
57
with :
56
58
terraform-version : ${{ steps.minMax.outputs.minVersion }}
59
+ tflint-version : ${{ env.TFLINT_VERSION }}
57
60
args : ' terraform_validate --color=always --show-diff-on-failure --files $(ls *.tf)'
58
61
59
62
preCommitMaxVersion :
75
78
uses : clowdhaus/terraform-composite-actions/pre-commit@v1.8.3
76
79
with :
77
80
terraform-version : ${{ steps.minMax.outputs.maxVersion }}
81
+ tflint-version : ${{ env.TFLINT_VERSION }}
78
82
terraform-docs-version : ${{ env.TERRAFORM_DOCS_VERSION }}
79
83
install-hcledit : true
Original file line number Diff line number Diff line change 1
1
name : Release
2
2
3
3
on :
4
+ workflow_dispatch :
4
5
push :
5
6
branches :
6
7
- main
8
+ - master
9
+ paths :
10
+ - ' **/*.tpl'
11
+ - ' **/*.py'
12
+ - ' **/*.tf'
13
+ - ' .github/workflows/release.yml'
7
14
8
15
jobs :
9
16
release :
10
17
name : Release
11
18
runs-on : ubuntu-latest
19
+ # Skip running release workflow on forks
20
+ if : github.repository_owner == 'terraform-aws-modules'
12
21
steps :
13
22
- name : Checkout
14
23
uses : actions/checkout@v3
15
24
with :
16
- fetch-depth : 0
17
25
persist-credentials : false
18
-
19
- - name : Setup Node.js
20
- uses : actions/setup-node@v3
21
- with :
22
- node-version : 16
26
+ fetch-depth : 0
23
27
24
28
- name : Release
25
29
uses : cycjimmy/semantic-release-action@v3
30
34
@semantic-release/git@10.0.0
31
35
conventional-changelog-conventionalcommits@4.6.3
32
36
env :
33
- GITHUB_TOKEN : ${{ secrets.SEMANTIC_RELEASE }}
37
+ GITHUB_TOKEN : ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
Original file line number Diff line number Diff line change 1
1
{
2
2
"branches" : [
3
- " main"
3
+ " main" ,
4
+ " master"
4
5
],
6
+ "ci" : false ,
5
7
"plugins" : [
6
8
[
7
9
" @semantic-release/commit-analyzer" ,
15
17
"preset" : " conventionalcommits"
16
18
}
17
19
],
18
- " @semantic-release/github"
20
+ [
21
+ " @semantic-release/github" ,
22
+ {
23
+ "successComment" : " This ${issue.pull_request ? 'PR is included' : 'issue has been resolved'} in version ${nextRelease.version} :tada:" ,
24
+ "labels" : false ,
25
+ "releasedLabels" : false
26
+ }
27
+ ],
28
+ [
29
+ " @semantic-release/changelog" ,
30
+ {
31
+ "changelogFile" : " CHANGELOG.md" ,
32
+ "changelogTitle" : " # Changelog\n\n All notable changes to this project will be documented in this file."
33
+ }
34
+ ],
35
+ [
36
+ " @semantic-release/git" ,
37
+ {
38
+ "assets" : [
39
+ " CHANGELOG.md"
40
+ ],
41
+ "message" : " chore(release): version ${nextRelease.version} [skip ci]\n\n ${nextRelease.notes}"
42
+ }
43
+ ]
19
44
]
20
45
}
You can’t perform that action at this time.
0 commit comments