Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.38 KB

README.md

File metadata and controls

46 lines (34 loc) · 1.38 KB

"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