Skip to content

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

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

Closed
wants to merge 1 commit into from

Conversation

nattb8
Copy link
Collaborator

@nattb8 nattb8 commented Feb 7, 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 7, 2025 05:02
@nattb8 nattb8 force-pushed the ci/update-version-action-alpha branch 3 times, most recently from 364ff44 to b1212b0 Compare February 7, 2025 05:44
@nattb8 nattb8 force-pushed the ci/update-version-action-alpha branch from b1212b0 to 37e18c5 Compare February 7, 2025 05:48
@nattb8 nattb8 closed this Feb 7, 2025
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.

1 participant