mirror of
https://github.com/hashicorp/vault.git
synced 2025-09-18 20:31:08 +02:00
The standard JSON output of `pipeline release list active-versions --format json` returns the configuration in the same schema as `.release/versions.hcl`. While that is intended for the command, the schema itself is not easy to use with the built-in functions in Github Actions which often requires complex JQ queries to reshape the data to be useful. Instead, add a `--github-output` flag that will automatically write the active versions to `$GITHUB_OUTPUT` encoded as JSON but with multiple useful top-level keys that make utilizing it in Github Actions a breeze. This support will be utilized in future pull requests. Signed-off-by: Ryan Cragun <me@ryan.ec>