@@ -1,10 +1,10 @@
11name: Backport
22on:
3− pull_request:
4− types: [closed]
3+ pull_request_target:
4+ types: [closed, labeled]
55jobs:
66 backport:
7− name: Create backport PRs
7+ name: Backport Pull Request
88 if: github.repository_owner == 'NixOS' && github.event.pull_request.merged == true
99 runs-on: ubuntu-latest
1010 steps:
@@ -12,6 +12,7 @@ jobs:
1212 with:
1313 # required to find all branches
1414 fetch-depth: 0
15+ ref: ${{ github.event.pull_request.head.sha }}
1516 - name: Create backport PRs
1617 # should be kept in sync with `version`
1718 uses: zeebe-io/backport-action@9b8949dcd4295d364b0939f07d0c7593598d26cd