Add backport assistant

Based on documentation in https://github.com/hashicorp/backport-assistant, using a
token from the teamterraform user.
This commit is contained in:
Alisdair McDiarmid 2020-10-28 10:22:01 -04:00 committed by GitHub
parent 66393bb62e
commit fd14b237e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 0 deletions

22
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,22 @@
---
name: Backport Assistant Runner
on:
pull_request_target:
types:
- closed
jobs:
backport:
if: github.event.pull_request.merged
runs-on: ubuntu-latest
container: hashicorpdev/backport-assistant:0.0.0
steps:
- name: Run Backport Assistant
run: |
backport-assistant backport
env:
BACKPORT_LABEL_REGEXP: "(?P<target>\\d\\.\\d\\.\\d)-backport"
BACKPORT_TARGET_TEMPLATE: "v{{.target}}"
GITHUB_TOKEN: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
GITHUB_REVIEW_TEAMS: "hashicorp/terraform-core"