You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some users want to automatically backport a pull request to a dynamically defined set of target branches.
For example, in #343 the request was to backport to all branches matching the feature/* pattern.
A workaround is available by adding an additional step in the workflow to expand the pattern into the branch refs:
- uses: actions/checkout@v3with:
# Fetch all branchesfetch-depth: 0
- id: branchesshell: bash# list all banches, filtering for 'feature/*', and cutting off remotes/origin/# then finally substitute newlines for spacesrun: | branches=$(git branch --list --all | grep 'origin/feature/' | cut -c 18- ) space_delimited=${branches//$'\n'/ } echo "BRANCHES=${space_delimited}" >> $GITHUB_OUTPUT
- uses: korthout/backport-action@v1with:
# now you can use the branches output in the backport-actiontarget_branches: ${{ steps.branches.outputs.BRANCHES }}
However, it would be great to support this directly in the target_branches input as:
Some users want to automatically backport a pull request to a dynamically defined set of target branches.
For example, in #343 the request was to backport to all branches matching the
feature/*
pattern.A workaround is available by adding an additional step in the workflow to expand the pattern into the branch refs:
However, it would be great to support this directly in the
target_branches
input as:The text was updated successfully, but these errors were encountered: