Skip to content

Commit

Permalink
build(release): fix the branch to scrape while originating from master
Browse files Browse the repository at this point in the history
  • Loading branch information
zarvd committed Jan 19, 2022
1 parent c357f83 commit aa99cac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ jobs:
VERSION_PATCH="${VERSION##*.}"
BRANCH=release-${VERSION_MAJOR}.${VERSION_MINOR}
if [[ ! `git branch --list ${BRANCH}` ]]; then
BRANCH=master
fi
if [[ "${VERSION_PATCH}" = "0" ]]; then
START_SHA=$(git rev-parse v${VERSION_MAJOR}.$((VERSION_MINOR-1)).0)
else
Expand Down

0 comments on commit aa99cac

Please sign in to comment.