Skip to content

Warning

You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?

Get Version

Actions
Extracts the version from github.ref
v1.2.0
Star (81)

Get Version Action

A GitHub Action which extracts the version from github.ref.

Finally, you can reliably get the pushed version on every platform.

Outputs

version

The pushed version. If github.ref was /refs/tags/v1.2.7 then the value of this output will be v1.2.7.

Example usage

steps:
    - id: get_version
      uses: battila7/[email protected]

    - run: echo ${{ steps.get_version.outputs.version }}

Get Version 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

Extracts the version from github.ref
v1.2.0

Get Version 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.