Merge pull request #12616 from hashicorp/kevin/backport

feat: backport-assistant
This commit is contained in:
Chris Roberts 2021-12-15 13:06:17 -08:00 committed by GitHub
commit fa0acbd60b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

@ -0,0 +1,22 @@
---
name: Backport Assistant Runner
on:
pull_request_target:
types:
- closed
- labeled
jobs:
backport:
if: github.event.pull_request.merged
runs-on: ubuntu-latest
container: hashicorpdev/backport-assistant:0.2.3
steps:
- name: Backport changes to stable-website
run: |
backport-assistant backport -automerge
env:
BACKPORT_LABEL_REGEXP: "backport/(?P<target>website)"
BACKPORT_TARGET_TEMPLATE: "stable-{{.target}}"
GITHUB_TOKEN: ${{ secrets.HASHIBOT_TOKEN }}