File tree Expand file tree Collapse file tree 2 files changed +60
-24
lines changed Expand file tree Collapse file tree 2 files changed +60
-24
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+
7
+ jobs :
8
+ terraform :
9
+ name : ' Terraform'
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : ' Checkout'
13
+ uses : actions/checkout@master
14
+
15
+ - name : ' Terraform Format'
16
+ uses : hashicorp/terraform-github-actions@master
17
+ with :
18
+ tf_actions_version : 0.12.24
19
+ tf_actions_subcommand : ' fmt'
20
+ env :
21
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
22
+ - name : ' Terraform Init'
23
+ uses : hashicorp/terraform-github-actions@master
24
+ with :
25
+ tf_actions_version : 0.12.24
26
+ tf_actions_subcommand : ' init'
27
+ env :
28
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
29
+
30
+ - name : ' Inject provider configs for validate command'
31
+ run : |
32
+ cat > providers.tf <<EOF
33
+ provider "aws" {
34
+ region = "us-east-2"
35
+ }
36
+ EOF
37
+ - name : ' Terraform Validate'
38
+ uses : hashicorp/terraform-github-actions@master
39
+ with :
40
+ tf_actions_version : 0.12.24
41
+ tf_actions_subcommand : ' validate'
42
+ env :
43
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44
+ release :
45
+ if : github.event_name == 'push'
46
+ runs-on : ubuntu-latest
47
+
48
+ steps :
49
+ - uses : actions/checkout@v2
50
+ - name : Semantic Release
51
+ id : semantic
52
+ uses : cycjimmy/semantic-release-action@v2
53
+ env :
54
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
55
+ with :
56
+ semantic_version : 17
57
+ extra_plugins : |
58
+ @semantic-release/changelog
59
+ @semantic-release/git
60
+
You can’t perform that action at this time.
0 commit comments