added validation for if ORIGIN_TAG=null

Signed-off-by: Matan Avital <matavital13@gmail.com>
This commit is contained in:
Matan Avital
2023-03-23 11:16:03 +02:00
parent 678ef2b787
commit 86c7215a72
+8 -1
View File
@@ -17,7 +17,14 @@ runs:
using: "composite"
steps:
- run: |
SUB='-rc'
if [[ -z "${{ inputs.ORIGINAL_TAG }}" ]]; then
echo "The value of ORIGINAL_TAG is ${{ inputs.ORIGINAL_TAG }}"
echo "Setting the value of ORIGINAL_TAG to ${{ github.ref_name }}"
export ORIGINAL_TAG=${{ github.ref_name }}
fi
shell: bash
- run: |
if [[ "${{ inputs.ORIGINAL_TAG }}" == *"${{ inputs.SUB_STRING }}"* ]]; then
echo "Release candidate tag found."
else