Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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}}
```