Skip to content

⚙️ A GitHub Action to get the pushed tag name

License

Notifications You must be signed in to change notification settings

run-ai/action-get-tag

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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:
    # Optionally strip `v` prefix
    strip_v: true
- name: Use tag
  run: echo ${{steps.tag.outputs.tag}}

About

⚙️ A GitHub Action to get the pushed tag name

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%