-
Notifications
You must be signed in to change notification settings - Fork 21
fix(java): delete tag before release #1370
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
Conversation
✅ Deploy Preview for api-clients-automation ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✗ The generated branch has been deleted.If the PR has been merged, you can check the generated code on the |
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.
GG!
@@ -154,6 +151,7 @@ async function spreadGeneration(): Promise<void> { | |||
`Processing release commit, creating new release tag ('${version}') for '${lang}' repository.` | |||
); | |||
|
|||
await run(`git tag -d ${version}`, { cwd: tempGitDir }); |
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.
have you checking locally that deleting a non existing tag doesn't exit 1?
@@ -459,6 +460,9 @@ async function createReleasePR(): Promise<void> { | |||
await run(`CI=false git commit -m "${commitMessage}"`); | |||
} | |||
|
|||
// cleanup all the changes to the generated files (the ones not commited because of the pre-commit hook) | |||
await run(`git checkout .`); |
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.
noice
🧭 What and Why
Refacto some functions to put them in the right common file and avoid importing between folders.
Fix the java release by deleting the tag before the release