forked from korthout/backport-action-test
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 972 Bytes
/
backport-pr-closed.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Backport on pull_request[closed]
on:
pull_request:
types: [closed]
permissions:
contents: write # so it can comment
pull-requests: write # so it can create pull requests
jobs:
backport:
name: Backport
runs-on: ubuntu-latest
if: >
github.event.pull_request.merged
&& github.event.pull_request.head.repo.full_name == 'korthout/backport-action-test'
steps:
- uses: actions/checkout@v4
- name: Backport
id: backport
uses: korthout/backport-action@main
with:
# copy all labels (backport labels are automatically skipped)
copy_labels_pattern: .+
experimental: >
{
"detect_merge_method": true
}
- name: Print was_successful output
run: echo "${{ steps.backport.outputs.was_successful }}"
- name: Print was_successful_by_target output
run: echo "${{ steps.backport.outputs.was_successful_by_target }}"