Skip to content

Commit

Permalink
fix(build): fix the following error: (#1224)
Browse files Browse the repository at this point in the history
Run BRANCHES=$(git branch -r --contains refs/tags/v7.249.0)
BRANCHES is '  origin/HEAD -> origin/master
  origin/master'
NUM_BRANCHES is '2'
exactly one branch required to release kork, but there are 2 (  origin/HEAD -> origin/master
  origin/master)
Error: Process completed with exit code 1.
  • Loading branch information
kirangodishala authored Jan 28, 2025
1 parent 5a5abd1 commit 8ea1b21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
# Given a tag, determine what branch we are on, so we can bump dependencies in the correct branch
- name: Get Branch
run: |
BRANCHES=$(git branch -r --contains ${{ github.ref }})
BRANCHES=$(git branch -r --contains ${{ github.ref }} | grep -v 'HEAD')
echo "BRANCHES is '${BRANCHES}'"
# Check for no branches explicitly...Otherwise echo adds a newline so wc thinks there's
# one branch. And echo -n makes it appears that there's one less branch than there
Expand Down

0 comments on commit 8ea1b21

Please sign in to comment.