mirror of https://github.com/status-im/consul.git
28 lines
793 B
YAML
28 lines
793 B
YAML
# This action creates downstream PRs for PRs with backport labels defined.
|
|
# See docs here: https://github.com/hashicorp/backport-assistant
|
|
|
|
name: Backport Assistant Runner
|
|
|
|
on:
|
|
pull_request_target:
|
|
types:
|
|
- closed
|
|
- labeled
|
|
branches:
|
|
- main
|
|
- 'release/*.*.x'
|
|
|
|
jobs:
|
|
backport:
|
|
if: github.event.pull_request.merged
|
|
runs-on: ubuntu-latest
|
|
container: hashicorpdev/backport-assistant:0.3.0
|
|
steps:
|
|
- name: Run Backport Assistant for release branches
|
|
run: |
|
|
backport-assistant backport -merge-method=squash -gh-automerge
|
|
env:
|
|
BACKPORT_LABEL_REGEXP: "backport/(?P<target>\\d+\\.\\d+)"
|
|
BACKPORT_TARGET_TEMPLATE: "release/{{.target}}.x"
|
|
GITHUB_TOKEN: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|