-
Notifications
You must be signed in to change notification settings - Fork 247
[6.2] Check version has been updated when publishing a release #1029
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
base: release/6.2
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,5 +12,5 @@ | |
|
||
func printVersionInformation() { | ||
// TODO: Automate updates to this somehow. | ||
print("main") | ||
print("6.2.0") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wouldn't it be more appropriate if it were in the form of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Heh, this is an interesting point. We really have two versions here - one is swift-format as a library, using the same semantic versioning as swift-syntax. Another is swift-format in the toolchain, which uses the toolchain versioning scheme. Which also means the check I added here doesn't work 🤔 |
||
} |
Uh oh!
There was an error while loading. Please reload this page.
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 we should also take into account the prerelease format, such as
"602.0.0-prerelease-$(date +'%Y-%m-%d')"
🤔Or, to avoid being affected by prerelease variations, it might be better to use
github.event.inputs.swift_format_version
instead ofsteps.swift_format_version.outputs.swift_format_version.