Skip to content

devops-actions/action-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

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forked from dawidd6/action-get-tag which has been an archived repo that I was relying on. Updated to fix issue with set-output (Deprecated).

OpenSSF Scorecard

Get tag GitHub Action

Simple Action that have only one responsibility - output tag name (parsed from GITHUB_REF environment variable).

Usage

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

on:
  push:
    tags:
      - '*'
- name: Get tag
  id: tag
  uses: devops-actions/[email protected]
  with:
    strip_v: true # Optional: Remove 'v' character from version
    default: v0.0.0 # Optional: Default version when tag not found

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

About

⚙️ A GitHub Action to get the pushed tag name

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%