Commit 856c4614 authored by Maxim Mironenko's avatar Maxim Mironenko Committed by GitHub

Terraform 0.14 upgrade (#100)

parent 70319bf0
...@@ -43,11 +43,3 @@ change-template: | ...@@ -43,11 +43,3 @@ change-template: |
template: | template: |
$CHANGES $CHANGES
replacers:
# Remove irrelevant information from Renovate bot
- search: '/---\s+^#.*Renovate configuration(?:.|\n)*?This PR has been generated .*/gm'
replace: ''
# Remove Renovate bot banner image
- search: '/\[!\[[^\]]*Renovate\][^\]]*\](\([^)]*\))?\s*\n+/gm'
replace: ''
# https://docs.mergify.io/conditions.html
# https://docs.mergify.io/actions.html
pull_request_rules: pull_request_rules:
- name: "approve automated PRs that have passed checks" - name: "approve automated PRs that have passed checks"
conditions: conditions:
- "author~=^(cloudpossebot|renovate\\[bot\\])$" - "check-success~=test/bats"
- "check-success~=test/readme"
- "check-success~=test/terratest"
- "base=master" - "base=master"
- "-closed" - "author=cloudpossebot"
- "head~=^(auto-update|renovate)/.*" - "head~=auto-update/.*"
- "check-success=test/bats"
- "check-success=test/readme"
- "check-success=test/terratest"
- "check-success=validate-codeowners"
actions: actions:
review: review:
type: "APPROVE" type: "APPROVE"
...@@ -19,17 +15,16 @@ pull_request_rules: ...@@ -19,17 +15,16 @@ pull_request_rules:
- name: "merge automated PRs when approved and tests pass" - name: "merge automated PRs when approved and tests pass"
conditions: conditions:
- "author~=^(cloudpossebot|renovate\\[bot\\])$" - "check-success~=test/bats"
- "check-success~=test/readme"
- "check-success~=test/terratest"
- "base=master" - "base=master"
- "-closed" - "head~=auto-update/.*"
- "head~=^(auto-update|renovate)/.*"
- "check-success=test/bats"
- "check-success=test/readme"
- "check-success=test/terratest"
- "check-success=validate-codeowners"
- "#approved-reviews-by>=1" - "#approved-reviews-by>=1"
- "#changes-requested-reviews-by=0" - "#changes-requested-reviews-by=0"
- "#commented-reviews-by=0" - "#commented-reviews-by=0"
- "base=master"
- "author=cloudpossebot"
actions: actions:
merge: merge:
method: "squash" method: "squash"
...@@ -43,7 +38,6 @@ pull_request_rules: ...@@ -43,7 +38,6 @@ pull_request_rules:
- name: "ask to resolve conflict" - name: "ask to resolve conflict"
conditions: conditions:
- "conflict" - "conflict"
- "-closed"
actions: actions:
comment: comment:
message: "This pull request is now in conflict. Could you fix it @{{author}}? 🙏" message: "This pull request is now in conflict. Could you fix it @{{author}}? 🙏"
......
...@@ -34,7 +34,7 @@ jobs: ...@@ -34,7 +34,7 @@ jobs:
fi fi
- name: Create Pull Request - name: Create Pull Request
if: steps.update.outputs.create_pull_request == 'true' if: {{ steps.update.outputs.create_pull_request == 'true' }}
uses: cloudposse/actions/github/create-pull-request@0.22.0 uses: cloudposse/actions/github/create-pull-request@0.22.0
with: with:
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }} token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
......
name: "auto-readme"
on:
schedule:
# Update README.md nightly
- cron: '0 4 * * *'
jobs:
update:
if: github.event_name == 'schedule'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Update readme
shell: bash
id: update
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
run: |
make init
make readme/build
- name: Create Pull Request
uses: cloudposse/actions/github/create-pull-request@0.20.0
with:
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
commit-message: Update README.md and docs
title: Update README.md and docs
body: |-
## what
This is an auto-generated PR that updates the README.md and docs
## why
To have most recent changes of README.md and doc from origin templates
branch: auto-update/readme
base: master
delete-branch: true
labels: |
auto-update
readme
...@@ -6,7 +6,7 @@ on: ...@@ -6,7 +6,7 @@ on:
- master - master
jobs: jobs:
publish: semver:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
# Drafts your next Release notes as Pull Requests are merged into "master" # Drafts your next Release notes as Pull Requests are merged into "master"
......
...@@ -9,8 +9,6 @@ jobs: ...@@ -9,8 +9,6 @@ jobs:
- name: "Checkout source code at current commit" - name: "Checkout source code at current commit"
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: mszostok/codeowners-validator@v0.5.0 - uses: mszostok/codeowners-validator@v0.5.0
if: github.event.pull_request.head.repo.full_name == github.repository
name: "Full check of CODEOWNERS"
with: with:
# For now, remove "files" check to allow CODEOWNERS to specify non-existent # For now, remove "files" check to allow CODEOWNERS to specify non-existent
# files so we can use the same CODEOWNERS file for Terraform and non-Terraform repos # files so we can use the same CODEOWNERS file for Terraform and non-Terraform repos
...@@ -18,8 +16,3 @@ jobs: ...@@ -18,8 +16,3 @@ jobs:
checks: "syntax,owners,duppatterns" checks: "syntax,owners,duppatterns"
# GitHub access token is required only if the `owners` check is enabled # GitHub access token is required only if the `owners` check is enabled
github_access_token: "${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}" github_access_token: "${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}"
- uses: mszostok/codeowners-validator@v0.5.0
if: github.event.pull_request.head.repo.full_name != github.repository
name: "Syntax check of CODEOWNERS"
with:
checks: "syntax,duppatterns"
...@@ -18,10 +18,9 @@ ...@@ -18,10 +18,9 @@
# will be null, and `module.this.delimiter` will be `-` (hyphen). # will be null, and `module.this.delimiter` will be `-` (hyphen).
# #
module "this" { module "this" {
source = "cloudposse/label/null" source = "cloudposse/label/null"
version = "0.22.0" // requires Terraform >= 0.12.26 version = "0.22.1" // requires Terraform >= 0.12.26
enabled = var.enabled enabled = var.enabled
namespace = var.namespace namespace = var.namespace
......
...@@ -18,10 +18,9 @@ ...@@ -18,10 +18,9 @@
# will be null, and `module.this.delimiter` will be `-` (hyphen). # will be null, and `module.this.delimiter` will be `-` (hyphen).
# #
module "this" { module "this" {
source = "cloudposse/label/null" source = "cloudposse/label/null"
version = "0.22.0" // requires Terraform >= 0.12.26 version = "0.22.1" // requires Terraform >= 0.12.26
enabled = var.enabled enabled = var.enabled
namespace = var.namespace namespace = var.namespace
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment