Skip to content
tag

GitHub Action

Git Tag Action

v1.0 Latest version

Git Tag Action

tag

Git Tag Action

Add a git tag to the current workflow commit

Installation

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

              

- name: Git Tag Action

uses: hole19/[email protected]

Learn more about this action in hole19/git-tag-action

Choose a version

git-tag-action

GitHub action that adds a lightweight git tag to the current workflow commit.

Note: If a tag with the same name already exists, it is replaced.

Environment Variables

  • GITHUB_TOKEN (required) - Required for permission to tag the repository.
  • TAG (required) - Name of the tag to be added.

Example usage

uses: hole19/git-tag-action@master
env:
  TAG: v1.2.3
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}