Skip to content

Commit 061d1b8

Browse files
authored
Merge pull request #542 from hashicorp/add-backport
Add backport-assistant
2 parents 5271386 + 3d8f46a commit 061d1b8

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/backport.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Backport Assistant Runner
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- closed
7+
- labeled
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
backport:
14+
permissions:
15+
contents: none
16+
if: github.event.pull_request.merged
17+
runs-on: ubuntu-latest
18+
container: hashicorpdev/backport-assistant:v0.5.8
19+
steps:
20+
- name: Backport changes to targeted release branch
21+
run: |
22+
backport-assistant backport -gh-automerge
23+
env:
24+
BACKPORT_LABEL_REGEXP: "backport/(?P<target>\\d+\\.\\d+\\.\\w+)"
25+
BACKPORT_TARGET_TEMPLATE: "release/{{.target}}"
26+
GITHUB_TOKEN: ${{ secrets.ELEVATED_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)