-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) · 1.39 KB
/
ci-tf-module-releaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: "🚀 CI Terraform Module Releaser"
on:
pull_request:
types: [opened, reopened, synchronize, closed] # Closed required
branches:
- main
permissions:
contents: write # Required for to push tags, create release, and push changes to the wiki
pull-requests: write # Required to comment on pull request
jobs:
ci-terraform-dynamodb-table:
name: 🛠️ ci-terraform-dynamodb-table
runs-on: ubuntu-latest
steps:
- name: 🔄 Checkout
uses: actions/checkout@v4
- name: ⛏️ Terraform Setup
uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.10.5
- name: 🍃 Terraform Init
run: terraform init
working-directory: aws/dynamodb-table
- name: ✅ Terraform Validate
run: terraform validate
working-directory: aws/dynamodb-table
release:
name: 🚀 terraform-module-releaser
runs-on: ubuntu-latest
needs:
- ci-terraform-dynamodb-table
steps:
- name: 🔄 Checkout
uses: actions/checkout@v4
- name: 🚀 Terraform Module Releaser
uses: techpivot/terraform-module-releaser@v1.4.1
with:
default-first-tag: v0.0.1
major-keywords: major change,breaking change
minor-keywords: feat,feature
patch-keywords: fix,hotfix,chore,docs,config,ci
terraform-docs-version: v0.19.0