DynamicPageList3/.github/workflows/backport.yml

25 lines
643 B
YAML
Raw Normal View History

2021-12-16 22:10:27 +00:00
name: Backport
on:
pull_request_target:
2022-03-08 00:01:01 +00:00
types:
- labeled
- closed
2021-12-16 22:10:27 +00:00
jobs:
backport:
name: Backport Action
runs-on: ubuntu-latest
2022-03-08 00:05:02 +00:00
if: |
github.event.pull_request.merged == true
&& contains(github.event.pull_request.labels.*.name, 'auto-backport')
&& (
(github.event.action == 'labeled' && github.event.label.name == 'auto-backport')
|| (github.event.action == 'closed')
)
2021-12-16 22:10:27 +00:00
steps:
- name: Backport
uses: sqren/backport-github-action@v8.9.7
2021-12-16 22:10:27 +00:00
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
auto_backport_label_prefix: backport-to-