-
Notifications
You must be signed in to change notification settings - Fork 101
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
Extend cut_release GHA workflow with release revert mechanism #745
Conversation
* Delete tag and release on associated revert commit * Conditional expression fix/simplification according to https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#jobsjob_idif Signed-off-by: Yury Tsarev <[email protected]>
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.
looks good, but might be dangerous if someone deletes the tag manually and then also does the revert. That would delete the last but one release.
We might be paranoid and check if the version we are downgrading into in the Chart.yaml == git describe --abbrev=0 --tags ${tag}^ (previous tag in git)
Probably overkill, though + we should be able to catch this in the PR review
@jkremser really good point, let me try to amend |
Signed-off-by: Yury Tsarev <[email protected]>
@jkremser amended, please check |
Signed-off-by: Yury Tsarev <[email protected]>
Signed-off-by: Yury Tsarev <[email protected]>
Signed-off-by: Yury Tsarev <[email protected]>
@jkremser make sense, amended |
Release tag and release deletion tested in my fork https://github.com/ytsarev/k8gb/runs/4226165824?check_suite_focus=true |
https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#jobsjob_idif
Signed-off-by: Yury Tsarev [email protected]