summary refs log tree commit diff
path: root/.github/workflows/backport.yml
blob: 69da652ba598b9d4e15fde555f044dc1bd00d1a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
name: Backport
on:
  pull_request:
    types: [closed]
jobs:
  backport:
    name: Create backport PRs
    if: github.repository_owner == 'NixOS' && github.event.pull_request.merged == true
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          # required to find all branches
          fetch-depth: 0
      - name: Create backport PRs
        # should be kept in sync with `version`
        uses: zeebe-io/backport-action@9b8949dcd4295d364b0939f07d0c7593598d26cd
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          github_workspace: ${{ github.workspace }}
          # should be kept in sync with `uses`
          version: 9b8949dcd4295d364b0939f07d0c7593598d26cd