Skip to content

[DX-3571] ci: update version gh action to handle alpha releases #405

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

Merged
merged 1 commit into from
Feb 9, 2025

Conversation

nattb8
Copy link
Collaborator

@nattb8 nattb8 commented Feb 9, 2025

Summary

This PR updates the GitHub Actions workflow to include a new "Mark as alpha release" checkbox. When selected, the updated version will have the .alpha suffix unless it already exists.

  • Added a mark_as_alpha input (boolean checkbox).
  • Adjusted version bumping logic:
    • If not marked as alpha, .alpha is removed if present.
    • If marked as alpha, .alpha is added if not already present.
  • Ensured correct version increments for both patch and minor updates.

Example:

Current Version Upgrade Type Mark as Alpha New Version
1.3.0.alpha Patch No 1.3.0
1.3.0.alpha Minor No 1.4.0
1.3.0 Patch No 1.3.1
1.3.0 Minor No 1.4.0
1.3.0.alpha Patch Yes 1.3.1.alpha
1.3.0.alpha Minor Yes 1.4.0.alpha
1.3.0 Patch Yes 1.3.1.alpha
1.3.0 Minor Yes 1.4.0.alpha

@nattb8 nattb8 requested a review from a team February 9, 2025 19:28
@nattb8 nattb8 merged commit 5cb20b8 into main Feb 9, 2025
25 of 28 checks passed
@nattb8 nattb8 deleted the ci/update-version-action-alpha branch February 9, 2025 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants