Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Latest commit

 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get Tag Github Action

Github action built to extract the tag name from the push action.

Usage

Should be used only when actual tag is pushed, otherwise the Action will exit with an error.

on:
  push:
    tags:
      - '*'
- name: Extract Tag
  id: tag
  uses: aaronbarnaby/get-tag@v1.0.0
  with:
    without_prefix_v: true # Remove prefix `v` from tag

- name: Use Tag
  run: echo ${{ steps.tag.outputs.tag }}

You can also access the tag from the env variable

- name: Use Tag
  run: echo $GIT_TAG_NAME

About

GitHub Action to extract the tag name from push

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages