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:
parent
66393bb62e
commit
fd14b237e5
|
@ -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"
|
Loading…
Reference in New Issue