29 lines
772 B
YAML
29 lines
772 B
YAML
---
|
|
name: Backport Assistant Runner
|
|
|
|
on:
|
|
pull_request_target:
|
|
types:
|
|
- closed
|
|
- labeled
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
backport:
|
|
if: github.event.pull_request.merged
|
|
runs-on: ${{ fromJSON(vars.RUNNER) }}
|
|
container: hashicorpdev/backport-assistant:v0.6.3
|
|
steps:
|
|
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
with:
|
|
fetch-depth: 0 # Fetch all branches and tags
|
|
- name: Backport changes to targeted release branch
|
|
run: |
|
|
backport-assistant backport
|
|
env:
|
|
BACKPORT_LABEL_REGEXP: "backport/(?P<target>\\d+\\.\\d+\\.\\w+)"
|
|
BACKPORT_TARGET_TEMPLATE: "release/{{.target}}"
|
|
GITHUB_TOKEN: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|