Expand description
External command execution hooks (similar to the semantic-release exec plugin).
Exposes computed version variables as GitVersion_* environment variables and
{Variable}/{env:VAR} template tokens, then runs lifecycle hook commands.
The version hook can modify the version by writing to stdout
(which overwrites next-version and triggers a recalculation).
Constants§
- HOOK_
ORDER - Execution order for side-effect hooks.
Functions§
- run_
hooks - Run side-effect hooks (verify/prepare/publish/success) in order.
On failure, runs the
failhook if present and then propagates the error.extra_prepareis the temporary prepare command supplied via--exec(run after the config’s prepare). - run_
version_ hook - Run the
versionhook (or--exec-version). Returns the first non-empty line from stdout. The caller applies the result asnext-versionand recalculates.