forked from geonetwork/geonetwork-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (24 loc) · 804 Bytes
/
backport.yml
File metadata and controls
29 lines (24 loc) · 804 Bytes
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
name: Automatic backport action
on:
pull_request_target:
types: ['closed', 'labeled']
permissions:
contents: write # so it can comment
pull-requests: write # so it can create pull requests
jobs:
backport:
name: Backport PR
if: github.event.pull_request.merged == true && contains(join(github.event.pull_request.labels.*.name, ','), 'backport')
runs-on: ubuntu-latest
steps:
- name: Backport Action
uses: sqren/backport-github-action@v9.3.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
auto_backport_label_prefix: backport-to-
- name: Info log
if: ${{ success() }}
run: cat ~/.backport/backport.info.log
- name: Debug log
if: ${{ failure() }}
run: cat ~/.backport/backport.debug.log