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 all branches.
See actions/checkout#1017 (comment)
  • Loading branch information
gberche-orange committed Jan 5, 2024
1 parent bba2b1a commit d054e99
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ jobs:
- name: rebase all release branches
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AWS_BOSH_ACCES_KEY_ID: ${{ secrets.AWS_BOSH_ACCES_KEY_ID }}
AWS_BOSH_SECRET_ACCES_KEY: ${{ secrets.AWS_BOSH_SECRET_ACCES_KEY }}
run: |
set -x # enable traces
Expand All @@ -31,8 +29,8 @@ jobs:
# 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)
git branch -a --list "release-*"
RELEASE_BRANCHES=$(git branch -a --list "release-*" | grep release)
for r in ${RELEASE_BRANCHES}; do
git co $r
git pull --rebase origin $r
Expand Down

0 comments on commit d054e99

Please sign in to comment.