backport action: run only when the label starts with 'backport'

This commit is contained in:
Domen Kožar 2021-06-14 13:41:10 +02:00
parent 13f10e9fe8
commit 527686e761
No known key found for this signature in database
GPG Key ID: C2FFBCAFD2C24246
1 changed files with 1 additions and 1 deletions

View File

@ -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