-
Notifications
You must be signed in to change notification settings - Fork 227
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
chore: update and fix rollback workflow #2551
Conversation
ROLLBACK_VERSION=$(echo ${CHANNEL_VERSION_LIST} | jq '.[-1]') | ||
echo "rollbackTag=${ROLLBACK_VERSION}" >> $GITHUB_OUTPUT | ||
TARGET_VERSION=$(echo ${CHANNEL_VERSION_LIST} | jq '.[-2]') | ||
echo "targetTag=${TARGET_VERSION}" >> $GITHUB_OUTPUT |
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.
Final sanity check: how worried are we that we can not specify the version to rollback to?
needs: determine-target-tag | ||
if: ${{ !fromJSON(needs.determine-target-tag.outputs.isStableRelease) }} | ||
needs: [get-target-and-rollback-tags, validate-stable-tags] | ||
if: ${{ inputs.rollbackChannel != 'stable' }} |
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 this.
if: ${{ inputs.rollbackChannel != 'stable' }} | |
if: ${{ inputs.rollbackChannel == 'stable' }} |
There will be nothing to rollback in our brew repo unless it was a stable release.
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.
This is only there for testing, to make sure we don't actually roll back a stable release. I'll remove this check after the test.
Closing. Rollback automation has been removed for now. |
Work item
This PR updates the rollback workflow to programmatically determine the release rollback and target versions based on the channel.
I have tested the get-target-and-rollback-tags and the validate-stable-tags jobs. You can see the results here:
if channel == 'stable'
check)I would like to get an initial review of this PR before testing a rollback on the beta channel.