summary refs log tree commit diff
path: root/.github/workflows
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2021-05-28 16:35:13 +0200
committerDomen Kožar <domen@dev.si>2021-05-28 16:35:13 +0200
commit95fa2dda186b637fd4e798fa5bac5f24bf4fda61 (patch)
tree7c41c0a1da7d933de70f7bcc24deb0df201e12cf /.github/workflows
parentb2f86e66629d1d05a7da7dfff5bf18353bf7968e (diff)
downloadnixpkgs-95fa2dda186b637fd4e798fa5bac5f24bf4fda61.tar
nixpkgs-95fa2dda186b637fd4e798fa5bac5f24bf4fda61.tar.gz
nixpkgs-95fa2dda186b637fd4e798fa5bac5f24bf4fda61.tar.bz2
nixpkgs-95fa2dda186b637fd4e798fa5bac5f24bf4fda61.tar.lz
nixpkgs-95fa2dda186b637fd4e798fa5bac5f24bf4fda61.tar.xz
nixpkgs-95fa2dda186b637fd4e798fa5bac5f24bf4fda61.tar.zst
nixpkgs-95fa2dda186b637fd4e798fa5bac5f24bf4fda61.zip
backport: set correct permissions
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/backport.yml5
1 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml
index 69da652ba59..39c8a34bf9d 100644
--- a/.github/workflows/backport.yml
+++ b/.github/workflows/backport.yml
@@ -1,10 +1,10 @@
 name: Backport
 on:
-  pull_request:
+  pull_request_target:
     types: [closed]
 jobs:
   backport:
-    name: Create backport PRs
+    name: Backport Pull Request
     if: github.repository_owner == 'NixOS' && github.event.pull_request.merged == true
     runs-on: ubuntu-latest
     steps:
@@ -12,6 +12,7 @@ jobs:
         with:
           # required to find all branches
           fetch-depth: 0
+          ref: ${{ github.event.pull_request.head.sha }}
       - name: Create backport PRs
         # should be kept in sync with `version`
         uses: zeebe-io/backport-action@9b8949dcd4295d364b0939f07d0c7593598d26cd