Skip to content

Commit

Permalink
ci: tag fix
Browse files Browse the repository at this point in the history
- moves tags from the release branch, that were created by workspace:version, to main before being pushed to main
  • Loading branch information
dereekb committed Mar 17, 2022
1 parent 64c6e51 commit 9eedf1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ jobs:
- run:
name: merge release into main and use the release commit message
command: git checkout main && git merge release --squash -Xtheirs && git commit -m "$(git log release --pretty=%B | cat)"
- run:
name: move tag from release to main
command: git tag -f $(git describe --abbrev=0)
- run:
name: push main to origin
command: git push --follow-tags origin main
Expand Down
2 changes: 1 addition & 1 deletion merge-in-main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ git pull origin develop
git checkout origin/develop
echo merging origin/main into develop
git pull origin main
git merge origin/main --no-commit
git merge origin/main --no-commit -m "merge(release): merge ${$(git describe --abbrev=0)} release"

# template for commit message: merge(release): merge 1.2.0 release

0 comments on commit 9eedf1f

Please sign in to comment.