Skip to content

Commit e4ca5ff

Browse files
committed
chore: Update configurations prior to project transfer
1 parent 1e7ccd7 commit e4ca5ff

File tree

7 files changed

+42
-115
lines changed

7 files changed

+42
-115
lines changed

.github/CODEOWNERS

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/CODE_OF_CONDUCT.md

Lines changed: 0 additions & 76 deletions
This file was deleted.

.github/workflows/lock.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
lock:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: dessant/lock-threads@v3
11+
- uses: dessant/lock-threads@v4
1212
with:
1313
github-token: ${{ secrets.GITHUB_TOKEN }}
1414
issue-comment: >

.github/workflows/pre-commit.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
env:
1010
TERRAFORM_DOCS_VERSION: v0.16.0
11+
TFLINT_VERSION: v0.44.1
1112

1213
jobs:
1314
collectInputs:
@@ -46,6 +47,7 @@ jobs:
4647
uses: clowdhaus/terraform-composite-actions/[email protected]
4748
with:
4849
terraform-version: ${{ steps.minMax.outputs.minVersion }}
50+
tflint-version: ${{ env.TFLINT_VERSION }}
4951
args: 'terraform_validate --color=always --show-diff-on-failure --files ${{ matrix.directory }}/*'
5052

5153
- name: Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }}
@@ -54,6 +56,7 @@ jobs:
5456
uses: clowdhaus/terraform-composite-actions/[email protected]
5557
with:
5658
terraform-version: ${{ steps.minMax.outputs.minVersion }}
59+
tflint-version: ${{ env.TFLINT_VERSION }}
5760
args: 'terraform_validate --color=always --show-diff-on-failure --files $(ls *.tf)'
5861

5962
preCommitMaxVersion:
@@ -75,5 +78,6 @@ jobs:
7578
uses: clowdhaus/terraform-composite-actions/[email protected]
7679
with:
7780
terraform-version: ${{ steps.minMax.outputs.maxVersion }}
81+
tflint-version: ${{ env.TFLINT_VERSION }}
7882
terraform-docs-version: ${{ env.TERRAFORM_DOCS_VERSION }}
7983
install-hcledit: true
Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,29 @@
11
name: Release
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches:
67
- main
8+
- master
79
paths:
8-
- '**.tf'
9-
- '!examples/**.tf'
10+
- '**/*.tpl'
11+
- '**/*.py'
12+
- '**/*.tf'
13+
- '.github/workflows/release.yml'
1014

1115
jobs:
1216
release:
1317
name: Release
1418
runs-on: ubuntu-latest
19+
# Skip running release workflow on forks
20+
if: github.repository_owner == 'terraform-aws-modules'
1521
steps:
1622
- name: Checkout
1723
uses: actions/checkout@v3
1824
with:
19-
fetch-depth: 0
2025
persist-credentials: false
21-
22-
- name: Setup Node.js
23-
uses: actions/setup-node@v3
24-
with:
25-
node-version: 16
26+
fetch-depth: 0
2627

2728
- name: Release
2829
uses: cycjimmy/semantic-release-action@v3
@@ -33,4 +34,4 @@ jobs:
3334
@semantic-release/[email protected]
3435
3536
env:
36-
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE }}
37+
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}

.releaserc.json

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"branches": [
3-
"main"
3+
"main",
4+
"master"
45
],
6+
"ci": false,
57
"plugins": [
68
[
79
"@semantic-release/commit-analyzer",
@@ -15,6 +17,29 @@
1517
"preset": "conventionalcommits"
1618
}
1719
],
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\nAll 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+
]
1944
]
2045
}

LICENSE

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -174,28 +174,3 @@
174174
of your accepting any such warranty or additional liability.
175175

176176
END OF TERMS AND CONDITIONS
177-
178-
APPENDIX: How to apply the Apache License to your work.
179-
180-
To apply the Apache License to your work, attach the following
181-
boilerplate notice, with the fields enclosed by brackets "[]"
182-
replaced with your own identifying information. (Don't include
183-
the brackets!) The text should be enclosed in the appropriate
184-
comment syntax for the file format. We also recommend that a
185-
file or class name and description of purpose be included on the
186-
same "printed page" as the copyright notice for easier
187-
identification within third-party archives.
188-
189-
Copyright 2022 Clowd Haus, LLC.
190-
191-
Licensed under the Apache License, Version 2.0 (the "License");
192-
you may not use this file except in compliance with the License.
193-
You may obtain a copy of the License at
194-
195-
http://www.apache.org/licenses/LICENSE-2.0
196-
197-
Unless required by applicable law or agreed to in writing, software
198-
distributed under the License is distributed on an "AS IS" BASIS,
199-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200-
See the License for the specific language governing permissions and
201-
limitations under the License.

0 commit comments

Comments
 (0)