git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #124760 from domenkozar/backport-permission-fix

Backport action: permission fix

commit45c81a11c285ab3f2481fd5667bd5d317467a55a authorDomen Kožar <domen@dev.si> dateFri 28 May 2021, 20:40 (5 years ago) parent1b969999a80dba
1 file changed+4−3
.github/workflows/backport.yml+4−3
.github/workflows/backport.yml+4−3
@@ -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