Merge pull request #126825 from domenkozar/backport-label-check

backport action: run only when the label starts with 'backport'
This commit is contained in:
Domen Kožar 2021-06-19 15:51:37 +02:00 committed by GitHub
commit e3858348c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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