File tree Expand file tree Collapse file tree 9 files changed +77
-88
lines changed Expand file tree Collapse file tree 9 files changed +77
-88
lines changed Original file line number Diff line number Diff line change 11name : Generate Readme
22
33on :
4- # Open a PR to update README on merge to master (as necessary)
4+ # Open a PR to update README on merge to main (as necessary)
55 push :
66 branches :
7- - master
7+ - main
88
99 # Update README nightly
1010 schedule :
@@ -14,13 +14,12 @@ jobs:
1414 update :
1515 runs-on : ubuntu-latest
1616 steps :
17- - name : Checkout
18- uses : actions/checkout@v2
17+ - uses : actions/checkout@v2
1918
2019 - name : readme/update
2120 shell : bash
2221 env :
23- GITHUB_TOKEN : " ${{ secrets.GITHUB_BOT_TOKEN }}"
22+ GITHUB_TOKEN : " ${{ secrets.GH_BOT_TOKEN }}"
2423 run : |
2524 make init
2625 make readme/deps
@@ -29,12 +28,15 @@ jobs:
2928 - name : Create Pull Request
3029 uses : peter-evans/create-pull-request@v3
3130 with :
32- labels : automated pr
33- token : ${{ secrets.GITHUB_BOT_TOKEN }}
31+ labels : |
32+ automated pr
33+ readme
34+ token : ${{ secrets.GH_BOT_TOKEN }}
3435 commit-message : " docs(README): auto update all sections"
3536 title : Automatic Update of README.md
3637 body : |-
3738 This is an auto-generated PR which updates the `README.md` from the `README.yaml`
3839 using the [`cloudposse/build-harness`](https://github.com/cloudposse/build-harness).
3940 branch : github-actions/auto-readme
4041 branch-suffix : timestamp
42+ base : main
Original file line number Diff line number Diff line change 1+ name : Code checks and tests
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - main
7+ push :
8+ branches :
9+ - main
10+
11+ jobs :
12+ lint :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v2
16+
17+ - uses : hashicorp/setup-terraform@v1
18+ with :
19+ terraform_version : 0.13.5
20+
21+ - name : Run Terraform format
22+ id : fmt
23+ run : terraform fmt -check
24+ continue-on-error : true
25+
26+ - name : Run Terraform init
27+ id : init
28+ run : terraform init -backend=false ./tests
29+
30+ - name : Run Terraform validate
31+ id : validate
32+ run : terraform validate ./tests
33+
34+ - name : Run Shellcheck
35+ uses : reviewdog/action-shellcheck@v1
36+ with :
37+ github_token : ${{ secrets.GH_BOT_TOKEN }}
38+ reporter : github-pr-review
39+
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11name : Release
22
33on :
4- push :
4+ workflow_run :
5+ workflows :
6+ - " Code checks and tests"
57 branches :
6- - master
8+ - main
9+ types :
10+ - completed
711
812jobs :
913 release :
10- name : release
14+ name : Release
1115 runs-on : ubuntu-latest
1216 steps :
13- - name : Checkout
14- uses : actions/checkout@v2
17+ - uses : actions/checkout@v2
1518
16- - name : Semantic Release
17- uses : cycjimmy/semantic-release-action@master
19+ - name : Run Semantic Release
20+ uses : cycjimmy/semantic-release-action@v2
1821 id : semantic
1922 with :
20- branch : master
23+ branch : main
2124 extra_plugins : |
2225 @semantic-release/git
2326 @semantic-release/changelog
2427 env :
25- GITHUB_TOKEN : ${{ secrets.GITHUB_BOT_TOKEN }}
28+ GITHUB_TOKEN : ${{ secrets.GH_BOT_TOKEN }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11---
2- branch : master
2+ branch : main
33
44plugins :
55 - " @semantic-release/commit-analyzer"
Original file line number Diff line number Diff line change 1- terraform {
2- required_version = " >= 0.12"
3-
4- backend "local" {}
5- }
6-
71provider "aws" {
82 region = " eu-central-1"
93}
Original file line number Diff line number Diff line change 1+ .. / versions. tf
Original file line number Diff line number Diff line change 11terraform {
2- required_version = " ~> 0.12.0"
2+ required_version = " >= 0.13"
3+ required_providers {
4+ archive = {
5+ source = " hashicorp/archive"
6+ }
7+ aws = {
8+ source = " hashicorp/aws"
9+ }
10+ null = {
11+ source = " hashicorp/null"
12+ }
13+ random = {
14+ source = " hashicorp/random"
15+ }
16+ }
317}
You can’t perform that action at this time.
0 commit comments