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
|
2023-05-03 16:40:01 +00:00
|
|
|
container: hashicorpdev/backport-assistant:0.3.3
|
2021-12-15 23:16:35 +00:00
|
|
|
steps:
|
|
|
|
- name: Backport changes to targeted release branch
|
|
|
|
run: |
|
2022-10-12 17:59:34 +00:00
|
|
|
backport-assistant backport -merge-method=squash -gh-automerge
|
2021-12-15 23:16:35 +00:00
|
|
|
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}}"
|
2022-05-24 17:37:53 +00:00
|
|
|
BACKPORT_MERGE_COMMIT: true
|
2021-12-15 23:16:35 +00:00
|
|
|
GITHUB_TOKEN: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|