2022-01-31 17:44:35 +00:00
|
|
|
name: Backport
|
|
|
|
on:
|
|
|
|
pull_request_target:
|
|
|
|
types: [closed, labeled]
|
2023-01-04 20:25:25 +00:00
|
|
|
permissions:
|
|
|
|
contents: write # so it can comment
|
|
|
|
pull-requests: write # so it can create pull requests
|
2022-01-31 17:44:35 +00:00
|
|
|
jobs:
|
|
|
|
backport:
|
|
|
|
name: Backport Pull Request
|
|
|
|
if: github.repository_owner == 'freifunk-gluon' && github.event.pull_request.merged == true && (github.event_name != 'labeled' || startsWith('backport', github.event.label.name))
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-04-01 13:46:08 +00:00
|
|
|
- uses: actions/checkout@v3
|
2022-01-31 17:44:35 +00:00
|
|
|
- name: Create backport PRs
|
2023-02-01 00:01:21 +00:00
|
|
|
uses: korthout/backport-action@v1.1.0
|
2022-01-31 17:44:35 +00:00
|
|
|
with:
|
2023-01-04 20:25:25 +00:00
|
|
|
# Config README: https://github.com/korthout/backport-action#backport-action
|
2022-01-31 17:44:35 +00:00
|
|
|
pull_description: |-
|
|
|
|
Automatic backport to `${target_branch}`, triggered by a label in #${pull_number}.
|