workflows/backport: only trigger on backport labels (#404132)

This commit is contained in:
Jörg Thalheim
2025-05-04 19:02:32 +02:00
committed by GitHub
+1 -1
View File
@@ -14,7 +14,7 @@ permissions: {}
jobs:
backport:
name: Backport Pull Request
if: github.repository_owner == 'NixOS' && github.event.pull_request.merged == true && (github.event_name != 'labeled' || startsWith('backport', github.event.label.name))
if: github.repository_owner == 'NixOS' && github.event.pull_request.merged == true && (github.pull_request.action != 'labeled' || startsWith(github.event.label.name, 'backport'))
runs-on: ubuntu-24.04
steps:
# Use a GitHub App to create the PR so that CI gets triggered