2021-05-24 17:42:28 +02:00
|
|
|
name: Backport
|
|
|
|
on:
|
2021-05-28 16:35:13 +02:00
|
|
|
pull_request_target:
|
2021-05-24 17:42:28 +02:00
|
|
|
types: [closed]
|
|
|
|
jobs:
|
|
|
|
backport:
|
2021-05-28 16:35:13 +02:00
|
|
|
name: Backport Pull Request
|
2021-05-25 07:14:12 +02:00
|
|
|
if: github.repository_owner == 'NixOS' && github.event.pull_request.merged == true
|
2021-05-24 17:42:28 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-05-25 09:41:07 +02:00
|
|
|
- uses: actions/checkout@v2
|
2021-05-24 17:42:28 +02:00
|
|
|
with:
|
|
|
|
# required to find all branches
|
|
|
|
fetch-depth: 0
|
2021-05-28 16:35:13 +02:00
|
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
2021-05-24 17:42:28 +02:00
|
|
|
- name: Create backport PRs
|
2021-05-25 09:44:35 +02:00
|
|
|
# should be kept in sync with `version`
|
2021-05-24 17:42:28 +02:00
|
|
|
uses: zeebe-io/backport-action@9b8949dcd4295d364b0939f07d0c7593598d26cd
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
github_workspace: ${{ github.workspace }}
|
2021-05-25 09:44:35 +02:00
|
|
|
# should be kept in sync with `uses`
|
2021-05-24 17:42:28 +02:00
|
|
|
version: 9b8949dcd4295d364b0939f07d0c7593598d26cd
|