Skip to content

Git Version Cmake

Actions
A GitHub Action to create a semantic version from Git tags/branches using only cmake and Git
v1.1.0
Latest
Star (0)

action-git-version

A GitHub action to build a version number based on the Git tags and branches

Only uses CMake and Git to build the version number.

Basic usage

See action.yml for a complete list of options and outputs.

steps:
- uses: actions/checkout@v4
  with:
    # This action needs access to the history and tags.
    # With 'fetch-depth: 0' the action fetches the complete history and all tags.
    # You can also limit the depth to a certain number and run
    # with 'fetch-tags: true'. The produced version number might not
    # be accurate in that case.
    fetch-depth: 0

- name: Run Git Version
  id: gitversion
  uses: toitlang/[email protected]

- name: Use the version
  shell: bash
  run: |
    echo ${{ steps.gitversion.outputs.version }}

Git Version Cmake is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

A GitHub Action to create a semantic version from Git tags/branches using only cmake and Git
v1.1.0
Latest

Git Version Cmake is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.