2021-12-15 23:16:35 +00:00
|
|
|
---
|
2021-12-16 23:49:59 +00:00
|
|
|
name: Backport Assistant Runner (for OSS & ENT)
|
2021-12-15 23:16:35 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request_target:
|
|
|
|
types:
|
|
|
|
- closed
|
|
|
|
- labeled
|
|
|
|
|
|
|
|
jobs:
|
2021-12-16 23:49:59 +00:00
|
|
|
backport-targeted-release-branch:
|
2021-12-15 23:16:35 +00:00
|
|
|
if: github.event.pull_request.merged
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container: hashicorpdev/backport-assistant:0.2.3
|
|
|
|
steps:
|
|
|
|
- name: Backport changes to targeted release branch
|
|
|
|
run: |
|
|
|
|
backport-assistant backport
|
|
|
|
env:
|
2022-02-02 21:37:56 +00:00
|
|
|
BACKPORT_LABEL_REGEXP: "backport/(?P<target>\\d+\\.\\d+\\.[+\\w]+)"
|
2021-12-15 23:16:35 +00:00
|
|
|
BACKPORT_TARGET_TEMPLATE: "release/{{.target}}"
|
|
|
|
GITHUB_TOKEN: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|