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 d058a36 commit 2e0596e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ To check if the tag `v1.0` exists in your repo:
with:
tag: 'v1.0'

- run: echo ${{ steps.check-tag.outputs.exists }}
- run: echo "Tag exists!"
if: ${{ steps.check-tag.outputs.exists == 'true' }}
```
To check if the tag [`v1.0.0`](https://github.com/actions/checkout/releases/tag/v1.0.0) exists in the repo `actions/checkout`:
Expand All @@ -37,7 +38,8 @@ To check if the tag [`v1.0.0`](https://github.com/actions/checkout/releases/tag/
tag: 'v1.0.0'
repo: 'actions/checkout'
- run: echo ${{ steps.check-tag.outputs.exists }}
- run: echo "Tag exists!"
if: steps.check-tag.outputs.exists == 'true' # you can drop ${{ }} on 'if' checks
```

<hr>
Expand Down

0 comments on commit 2e0596e

Please # to comment.