This is a simple Github action that tags a commit. It sets an environment variable TAGGED to true or false depending on the result.
- name: Tag a commit
uses: rexdefuror/tag-commit@v1.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
owner: 'repository_owner_username'
repo: 'repository_name'
tag: 'tag_name'
commit: 'commit_sha'
- run: echo "has been tagged - ${{ env.TAGGED }}"Required The Github token to use for authentication.
Required The owner of the repository.
Required The name of the repository.
Required The tag to create.
Required The commit to tag.