Skip to content

Commit

Permalink
[CI] Fix auto-backport condditions so that it doesn't trigger for oth…
Browse files Browse the repository at this point in the history
…er labels (#91042)
  • Loading branch information
brianseeders authored Feb 10, 2021
1 parent b18e4ec commit 4cd0548
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@ on:
jobs:
backport:
name: Backport PR
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'auto-backport')
if: |
github.event.pull_request.merged == true
&& contains(github.event.pull_request.labels.*.name, 'auto-backport')
&& (
(github.event.action == 'labeled' && github.event.label.name == 'auto-backport')
|| (github.event.action == 'closed')
)
runs-on: ubuntu-latest

steps:
- name: 'Get backport config'
run: |
Expand Down

0 comments on commit 4cd0548

Please sign in to comment.