https://github.com/pxpm/github-tag-action
https://github.com/pxpm/github-tag-action
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pxpm/github-tag-action
- Owner: pxpm
- License: mit
- Created: 2024-01-28T13:11:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-24T06:17:11.000Z (11 months ago)
- Last Synced: 2024-12-31T20:44:23.010Z (5 months ago)
- Language: TypeScript
- Size: 560 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Create a GitHub Action Using TypeScript
[](https://github.com/super-linter/super-linter)

[](https://github.com/actions/typescript-action/actions/workflows/check-dist.yml)
[](https://github.com/actions/typescript-action/actions/workflows/codeql-analysis.yml)
[](./badges/coverage.svg)### This package is an updated version of https://github.com/tvdias/github-tagger
Code was literally copied from that package and pasted here using an updated version of the action boilerplate.
Thanks to all the people who also contributed over that other repo: https://github.com/tvdias/github-tagger/graphs/contributorsTags the commit with a given text
Getting Started
To use, create a workflow (eg: .github/workflows/label.yml see Creating a Workflow file) and add a step like 'Tag commit' on the below sample. A token will be needed so the workflow can make calls to GitHub's rest API.```yaml
name: "My workflow"
steps:
- name: Tag commit
uses: pxpm/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
tag: "my_tag"
```Alternatively you can add a commit sha to override the default:
```yaml
steps:
- name: Tag commit
uses: pxpm/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
tag: "my_tag"
commit-sha: abc123efgesd
```