From 2e0596e96032d08a64dcd9b8e9bb3f2f61ee91c1 Mon Sep 17 00:00:00 2001 From: Sal Date: Thu, 14 Dec 2023 23:24:32 -0500 Subject: [PATCH] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 706c126..ce7f04b 100644 --- a/README.md +++ b/README.md @@ -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`: @@ -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 ```