-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: creating branch from tagged branch #598
Conversation
Thanks for opening a Pull Request. If you want to perform a review write a comment saying: @ansys-reviewer-bot review |
doc-deploy-changelog/action.yml
Outdated
@@ -262,7 +262,7 @@ runs: | |||
if [ $count -gt 0 ]; then | |||
echo "Using ${{ env.UPDATE_BRANCH }} to update the CHANGELOG file" | |||
if [[ ${{ env.RELEASE_BRANCH_EXISTS }} == "false" ]]; then | |||
git checkout -b ${{ env.UPDATE_BRANCH }} | |||
git checkout -b ${{ env.UPDATE_BRANCH }} ${{ env.MAIN_BRANCH }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should keep it as git checkout -b ${{ env.UPDATE_BRANCH }}
because the temporary branch, maint/changelog-update-v${{ env.TAG_VERSION }}
, is only created if the release branch or main do not exist. Otherwise, if the release branch or main do exist, then UPDATE_BRANCH is set to the release branch or main & the changelog file is updated directly on either of those branches
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it... Check 864c905
@@ -262,7 +262,7 @@ runs: | |||
if [ $count -gt 0 ]; then | |||
echo "Using ${{ env.UPDATE_BRANCH }} to update the CHANGELOG file" | |||
if [[ ${{ env.RELEASE_BRANCH_EXISTS }} == "false" ]]; then | |||
git checkout -b ${{ env.UPDATE_BRANCH }} | |||
git checkout -b ${{ env.UPDATE_BRANCH }} ${{ env.UPDATE_BRANCH }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
git checkout -b ${{ env.UPDATE_BRANCH }} ${{ env.UPDATE_BRANCH }} | |
git checkout -b ${{ env.UPDATE_BRANCH }} |
I think we do not need to duplicate it... right?
Closing this since there would be no changes |
As the title.
Close #597