Skip to content

Commit acebc78

Browse files
committed
chore: update release configurations for conventional commits
1 parent bd485d0 commit acebc78

File tree

9 files changed

+39
-98
lines changed

9 files changed

+39
-98
lines changed

.github/workflows/pre-commit.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: pre-commit
1+
name: Pre-Commit
22

33
on:
44
pull_request:
@@ -21,7 +21,7 @@ jobs:
2121

2222
- name: Get root directories
2323
id: dirs
24-
uses: clowdhaus/terraform-composite-actions/directories@v1.3.0
24+
uses: clowdhaus/terraform-composite-actions/directories@v1.4.0
2525

2626
preCommitMinVersions:
2727
name: Min TF pre-commit
@@ -36,22 +36,22 @@ jobs:
3636

3737
- name: Terraform min/max versions
3838
id: minMax
39-
uses: clowdhaus/[email protected].3
39+
uses: clowdhaus/[email protected].4
4040
with:
4141
directory: ${{ matrix.directory }}
4242

4343
- name: Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }}
4444
# Run only validate pre-commit check on min version supported
4545
if: ${{ matrix.directory != '.' }}
46-
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.3.0
46+
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.4.0
4747
with:
4848
terraform-version: ${{ steps.minMax.outputs.minVersion }}
4949
args: 'terraform_validate --color=always --show-diff-on-failure --files ${{ matrix.directory }}/*'
5050

5151
- name: Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }}
5252
# Run only validate pre-commit check on min version supported
5353
if: ${{ matrix.directory == '.' }}
54-
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.3.0
54+
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.4.0
5555
with:
5656
terraform-version: ${{ steps.minMax.outputs.minVersion }}
5757
args: 'terraform_validate --color=always --show-diff-on-failure --files $(ls *.tf)'
@@ -69,10 +69,10 @@ jobs:
6969

7070
- name: Terraform min/max versions
7171
id: minMax
72-
uses: clowdhaus/[email protected].3
72+
uses: clowdhaus/[email protected].4
7373

7474
- name: Pre-commit Terraform ${{ steps.minMax.outputs.maxVersion }}
75-
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.3.0
75+
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.4.0
7676
with:
7777
terraform-version: ${{ steps.minMax.outputs.maxVersion }}
7878
terraform-docs-version: ${{ env.TERRAFORM_DOCS_VERSION }}

.github/workflows/semantic-releaser.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: release
1+
name: Release
22

33
on:
44
push:
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
release:
14-
name: release
14+
name: Release
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout
@@ -26,6 +26,12 @@ jobs:
2626
node-version: 14
2727

2828
- name: Release
29+
uses: cycjimmy/semantic-release-action@v2
30+
with:
31+
semantic_version: 18.0.0
32+
extra_plugins: |
33+
@semantic-release/[email protected]
34+
@semantic-release/[email protected]
35+
2936
env:
3037
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE }}
31-
run: npx semantic-release

.github/workflows/static-checks.yml

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

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
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.62.2
3+
rev: v1.62.3
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_validate
@@ -23,7 +23,7 @@ repos:
2323
- '--args=--only=terraform_standard_module_structure'
2424
- '--args=--only=terraform_workspace_remote'
2525
- repo: https://github.com/pre-commit/pre-commit-hooks
26-
rev: v4.0.1
26+
rev: v4.1.0
2727
hooks:
2828
- id: check-merge-conflict
2929
- id: end-of-file-fixer

.releaserc.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,18 @@
33
"main"
44
],
55
"plugins": [
6-
"@semantic-release/commit-analyzer",
7-
"@semantic-release/release-notes-generator",
6+
[
7+
"@semantic-release/commit-analyzer",
8+
{
9+
"preset": "conventionalcommits"
10+
}
11+
],
12+
[
13+
"@semantic-release/release-notes-generator",
14+
{
15+
"preset": "conventionalcommits"
16+
}
17+
],
818
"@semantic-release/github"
919
]
1020
}

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Terraform module which creates AWS MSK (Managed Streaming for Kafka) resources.
44

55
## Usage
66

7-
See [`examples`](./examples) directory for working examples to reference:
7+
See [`examples`](https://github.com/clowdhaus/terraform-aws-msk-kafka-cluster/tree/main/examples) directory for working examples to reference:
88

99
```hcl
1010
module "msk_kafka_cluster" {
@@ -106,10 +106,10 @@ module "msk_kafka_cluster" {
106106

107107
## Examples
108108

109-
Examples codified under the [`examples`](./examples) are intended to give users references for how to use the module(s) as well as testing/validating changes to the source code of the module. If contributing to the project, please be sure to make any appropriate updates to the relevant examples to allow maintainers to test your changes and to keep the examples up to date for users. Thank you!
109+
Examples codified under the [`examples`](https://github.com/clowdhaus/terraform-aws-msk-kafka-cluster/tree/main/examples) are intended to give users references for how to use the module(s) as well as testing/validating changes to the source code of the module. If contributing to the project, please be sure to make any appropriate updates to the relevant examples to allow maintainers to test your changes and to keep the examples up to date for users. Thank you!
110110

111-
- [Basic](./examples/basic)
112-
- [Complete](./examples/complete)
111+
- [Basic](https://github.com/clowdhaus/terraform-aws-msk-kafka-cluster/tree/main/examples/basic)
112+
- [Complete](https://github.com/clowdhaus/terraform-aws-msk-kafka-cluster/tree/main/examples/complete)
113113

114114
## Security & Compliance [<img src="https://raw.githubusercontent.com/clowdhaus/terraform-aws-msk-kafka-cluster/main/.github/images/bridgecrew.svg" width="250" align="right" />](https://bridgecrew.io/)
115115

@@ -224,4 +224,4 @@ No modules.
224224

225225
## License
226226

227-
Apache-2.0 Licensed. See [LICENSE](LICENSE).
227+
Apache-2.0 Licensed. See [LICENSE](https://github.com/clowdhaus/terraform-aws-msk-kafka-cluster/blob/main/LICENSE).

examples/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Terraform AWS MSK Kafka Cluster examples
22

3-
- [Basic](./basic)
4-
- [Complete](./complete)
3+
- [Basic](https://github.com/clowdhaus/terraform-aws-msk-kafka-cluster/tree/main/examples/basic)
4+
- [Complete](https://github.com/clowdhaus/terraform-aws-msk-kafka-cluster/tree/main/examples/complete)

examples/basic/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,4 @@ No inputs.
6464
| <a name="output_zookeeper_connect_string_tls"></a> [zookeeper\_connect\_string\_tls](#output\_zookeeper\_connect\_string\_tls) | A comma separated list of one or more hostname:port pairs to use to connect to the Apache Zookeeper cluster via TLS. The returned values are sorted alphbetically |
6565
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
6666

67-
Apache-2.0 Licensed. See [LICENSE](../../LICENSE).
67+
Apache-2.0 Licensed. See [LICENSE](https://github.com/clowdhaus/terraform-aws-msk-kafka-cluster/blob/main/LICENSE).

examples/complete/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ No inputs.
7575
| <a name="output_zookeeper_connect_string_tls"></a> [zookeeper\_connect\_string\_tls](#output\_zookeeper\_connect\_string\_tls) | A comma separated list of one or more hostname:port pairs to use to connect to the Apache Zookeeper cluster via TLS. The returned values are sorted alphbetically |
7676
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
7777

78-
Apache-2.0 Licensed. See [LICENSE](../../LICENSE).
78+
Apache-2.0 Licensed. See [LICENSE](https://github.com/clowdhaus/terraform-aws-msk-kafka-cluster/blob/main/LICENSE).

0 commit comments

Comments
 (0)