forked from mirrors/nixpkgs
backport action: run only when the label starts with 'backport'
This commit is contained in:
parent
13f10e9fe8
commit
527686e761
2
.github/workflows/backport.yml
vendored
2
.github/workflows/backport.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue