Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bbonkr/git-tag-check-action
Provided tag is in git tag exists or not.
https://github.com/bbonkr/git-tag-check-action
git github-actions hacktoberfest nodejs typescript
Last synced: 9 days ago
JSON representation
Provided tag is in git tag exists or not.
- Host: GitHub
- URL: https://github.com/bbonkr/git-tag-check-action
- Owner: bbonkr
- License: mit
- Created: 2022-01-16T08:04:45.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-07T03:39:18.000Z (7 months ago)
- Last Synced: 2024-10-17T23:12:42.595Z (20 days ago)
- Topics: git, github-actions, hacktoberfest, nodejs, typescript
- Language: TypeScript
- Homepage: https://bbon.kr/github-action-git-tag-check-action/
- Size: 1.57 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Git tag check action
[![](https://img.shields.io/github/v/release/bbonkr/git-tag-check-action?display_name=tag&style=flat-square&include_prereleases)](https://github.com/bbonkr/git-tag-check-action/releases)
This is an action to check if the tag you want to write exists in the remote repository.
## Usages
Check if the provided git tag exists.
```yaml
steps:
- uses: actions/checkout@v4- uses: bbonkr/git-tag-check-action@v1
id: git_tag_check
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tag: 'v1.0.0'
- name: logging
run: |
echo "Found tag=${{ steps.git_tag_check.outputs.tag }}"
```### Inputs
| Name | Required | Description |
| :----------- | :------: | :-------------------------------------------------------- |
| tag | ✅ | Tag you want to check |
| github_token | ✅ | GitHub Personal Access Token. It requires REPO scope. |
| prefix | | Prefix of tag name. default value is `''` (empty string). |### Outputs
| Name | Description |
| :--------- | :--------------------------------------------------------------- |
| tag | If tag is exists, returns tag. Does not exist then empty string. |
| version | Version string. Same as tag. |
| major | Major number of version |
| minor | Minor number of version |
| patch | Patch number of version |
| prerelease | Prerelease value of version |
| build | Build value of version |