Skip to content

Commit

Permalink
chore(workflows): adjust backport.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tasso94 authored Dec 20, 2023
1 parent 87263dd commit adfcfb4
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,17 @@ jobs:
backport:
name: Backport pull request
runs-on: ubuntu-latest
# Don't run on closed unmerged pull requests
if: github.event.pull_request.merged
# Only run when pull request is merged
# or when a comment containing `/backport` is created
if: >
(
github.event_name == 'pull_request' &&
github.event.pull_request.merged
) || (
github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
contains(github.event.comment.body, '/backport')
)
steps:
- name: Import Secrets
id: secrets
Expand Down Expand Up @@ -55,3 +64,4 @@ jobs:
copy_assignees: true
copy_requested_reviewers: true
label_pattern: ^backport:([^ ]+)$
copy_labels_pattern: ^ci:([^ ]+)$

0 comments on commit adfcfb4

Please sign in to comment.