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
|
2022-10-12 17:31:19 +00:00
|
|
|
uses: sqren/backport-github-action@v8.9.7
|
2021-12-16 22:10:27 +00:00
|
|
|
with:
|
2022-02-28 23:34:16 +00:00
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
2022-03-07 23:55:57 +00:00
|
|
|
auto_backport_label_prefix: backport-to-
|