No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
rajeshsc1 d9be602dfa
Merge pull request #60 from hashicorp/SMRE-1028-update-github-action
SMRE-1028: Github-action-update to avoid Node.js 20 deprecation warnings
2026-04-28 14:21:27 +05:30
.github fix super-linter crash and harden permissions 2026-04-20 18:48:38 +05:30
META.d [COMPLIANCE] Update Copyright and License Headers 2025-12-09 10:14:23 +00:00
.gitignore Update the project metadata to resolve a number of Heimdall checks: (#36) 2023-06-20 11:05:07 -05:00
action.yml SMRE-1028-Github-action-update 2026-04-27 22:16:04 +05:30
CODEOWNERS Update CODEOWNERS for SMRE (#41) 2024-04-26 13:06:54 -07:00
LICENSE [COMPLIANCE] Update Copyright and License Headers 2025-12-09 10:14:23 +00:00
README.md Update the project metadata to resolve a number of Heimdall checks: (#36) 2023-06-20 11:05:07 -05:00

actions-set-product-version

Heimdall CI

Description

actions-set-product-version is a Github action that acts as a bridge between the product repo and our new CRT feature: automated version bumping. This action should be used in the build.yml to parse the version/VERSION file that lives in all product repos.

THe following describes what this action does:

  • Allows for the static version string from the version/VERSION file to be read by the new CRT workflow and automagically be bumped to the next version (whether it be a minor, or patch, or major version bump).
  • Outputs an error if theres no VERSION file in the version/ dir
  • Outputs an error if theres no version string in the VERSION file
  • Is able to parse product_version if it is 1.3.0-alpha1 as 1.3.0 (example: when product_version = 1.3.0-alpha1, base_version = 1.3.0)
  • Is able to parse prerelease product versions such as alpha1 (example prerelease_product_version = alpha1) in the statement above.

Outputs

Note that the version/VERSION version should never contain metadata - only release version and prerelease information. This action has three outputs from parsing the release/prerelease information:

  • product-version (full product version string: eg. 1.0.0-dev)
  • base-product-version (product version stripped of prerelease information: eg. 1.0.0)
  • prerelease-product-version (prerelease information dev)

Use

This action should be implemented in product repo build.yml files. The action is intended to grab the version from the version file at the beginning of the build, then passes those versions (along with metadata, where necessary) to any workflow jobs that need version information.