Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/branch-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
head_branch:
type: string
required: false
ignore_branches:
type: string
required: false
default: ''

jobs:
sync:
Expand Down Expand Up @@ -71,6 +75,9 @@ jobs:
# This is the HEAD branch (the one with the new changes), we
# should merge into the following bugfix branch.
isnext=true
elif [[ -n "${{ inputs.ignore_branches }}" ]] && grep -qE "${{ inputs.ignore_branches }} <<< "$branch"; then
# This branch is excluded by the provied pattern
continue
elif $isnext; then
# Merge into this branch.
base_branch="$branch"
Expand Down