alacrity-sg/Generate Build Version

Generates unique build-version number for builds

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Apr 25, 2025
License
Apache 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: alacrity-sg/build-version@016b4d08865dfdb9773177035ef452460d013b85 # v1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
repo-pathPath to the repositoryno./
increment-typeSet increment type as either 'major', 'minor' or 'patch'. Defaults to 'patch'nopatch
checkoutCheckout the repository before generating the build versionnotrue
archArchitecture to use for build. Defaults to amd64noamd64
namedescription
BUILD_VERSIONGenerated build version number
BUILD_VERSION_VGenerated build version number with v as prefix