Skip to content

aaronbarnaby/get-tag

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors