Skip to content

Commit

Permalink
add rebase-release-branches-on-master-branch-commits.yml (fixup)
Browse files Browse the repository at this point in the history
list remote branches.
See actions/checkout#1017 (comment)
  • Loading branch information
gberche-orange committed Jan 5, 2024
1 parent d2235fa commit bba2b1a
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ jobs:
git config --global --add safe.directory /github/workspace
remote_repo="https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git"
git branch --list
git branch --list "release-*"
RELEASE_BRANCHES=$(git branch --list "release-*" | grep release)
# Note: actions/checkout does not include local branches, see https://github.com/actions/checkout/issues/1017#issuecomment-1344861321
# therefore we iterate on remote branches
git branch -r --list "release-*"
RELEASE_BRANCHES=$(git branch -r --list "release-*" | grep release)
for r in ${RELEASE_BRANCHES}; do
git co $r
git pull --rebase origin $r
Expand Down

0 comments on commit bba2b1a

Please sign in to comment.