Skip to content

Commit

Permalink
fix: ensure that the edge-bonsai tag is updated on a prerelease
Browse files Browse the repository at this point in the history
Makes sure that we update the tag for `edge-bonsai` when we make a prerelease for it.
Also updates the release to point to the new edge tag.
  • Loading branch information
TimBeyer authored and vvagaytsev committed Aug 22, 2023
1 parent 430b8ae commit a1378b1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -505,11 +505,18 @@ jobs:
# GitHub timelines
VERSION=<<parameters.version>>
# Update the release hash
# Update the prerelease tag to the current sha
# Github's release edit only changes metadata
# but does not update the underlying tag itself
git tag -f ${VERSION} ${CIRCLE_SHA1}
git push origin --tags --force
# Update the release to the now updated tag and target
gh release edit ${VERSION} \
-R ${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME} \
--prerelease \
--target ${CIRCLE_SHA1}
--tag ${VERSION}
# Replace release artifacts
ghr \
Expand Down

0 comments on commit a1378b1

Please sign in to comment.