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