Skip to content
tag

GitHub Action

"Create Tag" Action for GitHub Actions

v1.0.0 Latest version

"Create Tag" Action for GitHub Actions

tag

"Create Tag" Action for GitHub Actions

GitHub Action to create a git tag

Installation

Copy and paste the following snippet into your .yml file.

              

- name: "Create Tag" Action for GitHub Actions

uses: ydataai/[email protected]

Learn more about this action in ydataai/create-tag

Choose a version

"Create Tag" Action for GitHub Actions

Inputs

name required type default description
tag yes string The tag name to create
message yes string The tag message
sha no string COMMIT_SHA The sha of the commit to tag
github_token no string GITHUB_TOKEN The GitHub personal access token used to fetch and perform operations

Usage

Add the following step to your workflow:

- name: Create Tag
  uses: ydataai/create-tag@v1
  with:
    tag: "<TAG_NAME>"
    message: "<TAG_MESSAGE>"

Or if you want to use your own PAT and choose the specific commit to tag:

- name: Create Tag
  uses: ydataai/create-tag@v1
  with:
    tag: "<TAG_NAME>"
    message: "<TAG_MESSAGE>"
    github_token: "<PAT>"
    sha: "<COMMIT_SHA>"

License

The scripts and documentation in this project are released under the MIT License