Creates a version.yml file for Version Data
Find a file
2025-09-29 16:00:42 -07:00
.forgejo/workflows Changed slightly to no longer need build-id or special-build 2025-09-29 15:58:27 -07:00
dist Changed slightly to no longer need build-id or special-build 2025-09-29 15:58:27 -07:00
src Changed slightly to no longer need build-id or special-build 2025-09-29 15:58:27 -07:00
.gitignore First Commit 2025-09-27 02:55:16 -07:00
.prettierignore First Commit 2025-09-27 02:55:16 -07:00
.prettierrc.js First Commit 2025-09-27 02:55:16 -07:00
action.yml Changed slightly to no longer need build-id or special-build 2025-09-29 15:58:27 -07:00
package-lock.json Switched to NCC 2025-09-27 08:51:04 -07:00
package.json Switched to NCC 2025-09-27 08:51:04 -07:00
README.md [skip ci] Fixed Readme 2025-09-29 16:00:42 -07:00

version-file Action

This allows creating of a yaml file containing version data for use in applications to get the following:

  • Version
  • Special Version (ex. -rc1, -b25, -dev)
  • Revision (Uses a YYDDD type, ex 9/10/23 is 23253)
  • GIT Commit SHA
  • Time File was created

Inputs

  • version [Required] - Version of the application. (ex 1.0)
  • build-id [Optional] - The Build ID. If blank it uses the action build number. (ex 23)
  • special-build [Optional] - The Special Build (ex -rc1).
  • file-output [Required] - Location to drop the generated YAML File.

Example

version: 1.0.0
revision: "23253"
special_build: -b4
git_revision: 8b994bf8e3d3c35c89e24cf79e62ecfa35812fc2
build_time: 2023-09-10T08:11:33.740+00:00