Merge pull request #126825 from domenkozar/backport-label-check
backport action: run only when the label starts with 'backport'
This commit is contained in:
commit
e3858348c4
2
.github/workflows/backport.yml
vendored
2
.github/workflows/backport.yml
vendored
|
@ -5,7 +5,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
backport:
|
backport:
|
||||||
name: Backport Pull Request
|
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
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
Loading…
Reference in a new issue