Skip to content

Commit 8080500

Browse files
[Backport release/0.2.z] ci: add backport action (#345)
Co-authored-by: Carlos Feria <[email protected]>
1 parent 7ea4a14 commit 8080500

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/backport.yaml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Backport
2+
on:
3+
pull_request_target:
4+
types: [ closed ]
5+
issue_comment:
6+
types: [ created ]
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
jobs:
11+
backport:
12+
name: Backport pull request
13+
runs-on: ubuntu-latest
14+
if: >
15+
(
16+
github.event_name == 'pull_request_target' &&
17+
github.event.pull_request.merged
18+
) || (
19+
github.event_name == 'issue_comment' &&
20+
github.event.issue.pull_request &&
21+
github.event.comment.user.id != 97796249 &&
22+
startsWith(github.event.comment.body, '/backport')
23+
)
24+
steps:
25+
- uses: actions/checkout@v4
26+
- name: Create backport pull requests
27+
uses: korthout/backport-action@v3
28+
with:
29+
merge_commits: skip

0 commit comments

Comments
 (0)