Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dawidd6/action-get-tag
:gear: A GitHub Action to get the pushed tag name
https://github.com/dawidd6/action-get-tag
action get git github github-actions push tag
Last synced: 3 days ago
JSON representation
:gear: A GitHub Action to get the pushed tag name
- Host: GitHub
- URL: https://github.com/dawidd6/action-get-tag
- Owner: dawidd6
- License: mit
- Archived: true
- Created: 2020-03-21T14:38:05.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-09T04:01:00.000Z (about 2 years ago)
- Last Synced: 2024-10-31T03:29:58.317Z (7 days ago)
- Topics: action, get, git, github, github-actions, push, tag
- Language: JavaScript
- Homepage:
- Size: 77.1 KB
- Stars: 38
- Watchers: 4
- Forks: 15
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.
```yaml
on:
push:
tags:
- '*'
``````yaml
- name: Get tag
id: tag
uses: dawidd6/action-get-tag@v1
with:
# Optionally strip `v` prefix
strip_v: true
- name: Use tag
run: echo ${{steps.tag.outputs.tag}}
```