Skip to content
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

Fixes to the auto version number script #589

Merged
merged 4 commits into from
Apr 1, 2023

Conversation

jeremypoulter
Copy link
Collaborator

Updated the auto version number script to use the correct GitHub environment variables to get the version number when running on GitHub Actions.

Added the _modified suffix to the version number when the working directory is not clean. This is to ensure that the version number is always different when the working directory is not clean.

Added the GIT_HASH define with the short hash of the current commit. This is to make it easier to identify the exact commit that was used to build the binary.

Fixes #584

Updated the auto version number script to use the correct GitHub environment variables to get the version number when running on GitHub Actions.

Added the `_modified` suffix to the version number when the working directory is not clean. This is to ensure that the version number is always different when the working directory is not clean.

Added the `GIT_HASH` define with the short hash of the current commit. This is to make it easier to identify the exact commit that was used to build the binary.

Fixes #584
@jeremypoulter jeremypoulter marked this pull request as ready for review April 1, 2023 13:10
@jeremypoulter jeremypoulter merged commit 2ac0f88 into master Apr 1, 2023
@jeremypoulter jeremypoulter deleted the jeremypoulter/auto_version_fixes branch April 1, 2023 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto version number not added when built by GitHub
1 participant