Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mukunku authored Dec 15, 2023
1 parent 495477b commit b4d28a5
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,25 @@ A string value of 'true' or 'false'

To check if the tag `v1.0` exists in your repo:
```yaml
- uses: mukunku/tag-exists-action@v1.4.0
id: checkTag
- uses: mukunku/tag-exists-action@v1.5.0
id: check-tag
with:
tag: 'v1.0'

- run: echo ${{ steps.checkTag.outputs.exists }}
- run: echo ${{ steps.check-tag.outputs.exists }}
```
To check if the tag [`v1.0.0`](https://github.com/actions/checkout/releases/tag/v1.0.0) exists in the repo `actions/checkout`:
```yaml
- uses: mukunku/tag-exists-action@v1.4.0
id: checkTag
- uses: mukunku/tag-exists-action@v1.5.0
id: check-tag
with:
tag: 'v1.0.0'
repo: 'actions/checkout'
- run: echo ${{ steps.checkTag.outputs.exists }}
- run: echo ${{ steps.check-tag.outputs.exists }}
```

<hr>

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](https://github.com/mukunku/tag-exists-action/wiki/Setting-the-GITHUB_TOKEN-explicitly).

0 comments on commit b4d28a5

Please sign in to comment.