Skip to content

Commit 3db3587

Browse files
committed
ci: add backports workflow
1 parent 3b0dd7c commit 3db3587

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/backports.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: backports
2+
3+
on:
4+
pull_request_target:
5+
types: [closed]
6+
issue_comment:
7+
types: [created]
8+
9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
13+
jobs:
14+
cherry-pick:
15+
runs-on: ubuntu-latest
16+
# NOTE(mnaser): https://github.com/korthout/backport-action?tab=readme-ov-file#trigger-using-a-comment
17+
if: >
18+
(
19+
github.event_name == 'pull_request_target' &&
20+
github.event.pull_request.merged
21+
) || (
22+
github.event_name == 'issue_comment' &&
23+
github.event.issue.pull_request &&
24+
github.event.comment.user.id != 105816074 &&
25+
startsWith(github.event.comment.body, '/backport')
26+
)
27+
steps:
28+
- uses: actions/checkout@v4
29+
with:
30+
token: ${{ secrets.VEXXHOST_BOT_PAT }}
31+
- uses: korthout/backport-action@436145e922f9561fc5ea157ff406f21af2d6b363 # v3.2.0
32+
with:
33+
github_token: ${{ secrets.VEXXHOST_BOT_PAT }}
34+
copy_labels_pattern: skip-release-notes

0 commit comments

Comments
 (0)