-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
23 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,41 @@ | ||
# tag-exists-action | ||
A GitHub action that determines if a tag exists in your repo. | ||
A GitHub action that determines if a tag exists in a repo. | ||
|
||
## Inputs | ||
|
||
### `tag` | ||
### `tag` | ||
|
||
**Required** The tag to search for. | ||
**Required** - The tag to search for. | ||
|
||
### `repo` | ||
|
||
**Optional** - External repo you'd like to search, in `owner/repo-name` format. | ||
|
||
## Outputs | ||
|
||
### `exists` | ||
|
||
a string value of 'true' or 'false' | ||
A string value of 'true' or 'false' | ||
|
||
## Example usages | ||
|
||
## Example usage | ||
To check if the tag `v1.0` exists in your repo: | ||
```yaml | ||
- uses: mukunku/[email protected] | ||
id: checkTag | ||
with: | ||
tag: 'v1.0' | ||
|
||
- run: echo ${{ steps.checkTag.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.3.0 | ||
- uses: mukunku/tag-exists-action@v1.4.0 | ||
id: checkTag | ||
with: | ||
tag: 'tag-to-search-for' | ||
repo: 'owner/repo-name' | ||
tag: 'v1.0.0' | ||
repo: 'actions/checkout' | ||
- run: echo ${{ steps.checkTag.outputs.exists }} | ||
``` | ||
|