GitHub action that adds a lightweight git tag to the current workflow commit.
Note: If a tag with the same name already exists, it gets replaced.
It's a fork of hole19/git-tag-action which is seems to be abandoned. The difference is that my action contains an important fix (it checks if the tag exists both in the remote and local repos).
- GITHUB_TOKEN (required) - Required for permission to tag the repository.
- TAG (required) - Name of the tag to be added.
uses: cardinalby/git-tag-action@master
env:
TAG: v1.2.3
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}