You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
tag-exists-action
v1.5.0
A GitHub action that determines if a tag exists in a repo.
Required - The tag to search for.
Optional - Repo you'd like to search, in owner/repo-name
format.
A string value of 'true' or 'false'
To check if the tag v1.0
exists in your repo:
- uses: mukunku/tag-exists-action@v1.5.0
id: check-tag
with:
tag: 'v1.0'
- run: echo "Tag exists!"
if: ${{ steps.check-tag.outputs.exists == 'true' }}
To check if the tag v1.0.0
exists in the repo actions/checkout
:
- uses: mukunku/tag-exists-action@v1.5.0
id: check-tag
with:
tag: 'v1.0.0'
repo: 'actions/checkout'
- run: echo "Tag exists!"
if: steps.check-tag.outputs.exists == 'true' # you can drop ${{ }} on 'if' checks
This action uses the ${{github.token}}
secret to automatically inject your access token. If you'd like to provide your own token instead check out this help article.