summary refs log tree commit diff
path: root/.github
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2021-06-14 13:41:10 +0200
committerDomen Kožar <domen@dev.si>2021-06-14 13:41:10 +0200
commit527686e7611bb70d9d5a338dab4490821942d643 (patch)
tree3bfa690f8a4741d3bf547913e1409bf4a306629b /.github
parent13f10e9fe84dda019bd83201ac1e5e2c846e3840 (diff)
downloadnixpkgs-527686e7611bb70d9d5a338dab4490821942d643.tar
nixpkgs-527686e7611bb70d9d5a338dab4490821942d643.tar.gz
nixpkgs-527686e7611bb70d9d5a338dab4490821942d643.tar.bz2
nixpkgs-527686e7611bb70d9d5a338dab4490821942d643.tar.lz
nixpkgs-527686e7611bb70d9d5a338dab4490821942d643.tar.xz
nixpkgs-527686e7611bb70d9d5a338dab4490821942d643.tar.zst
nixpkgs-527686e7611bb70d9d5a338dab4490821942d643.zip
backport action: run only when the label starts with 'backport'
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/backport.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml
index 766b5aa831a..79af5835463 100644
--- a/.github/workflows/backport.yml
+++ b/.github/workflows/backport.yml
@@ -5,7 +5,7 @@ on:
 jobs:
   backport:
     name: Backport Pull Request
-    if: github.repository_owner == 'NixOS' && github.event.pull_request.merged == true
+    if: github.repository_owner == 'NixOS' && github.event.pull_request.merged == true && (github.event_name != 'labeled' || startsWith('backport', github.event.label.name))
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v2