From 86c7215a72704ccc7182de08777f2acdd79e86a2 Mon Sep 17 00:00:00 2001 From: Matan Avital Date: Thu, 23 Mar 2023 11:15:00 +0200 Subject: [PATCH] added validation for if ORIGIN_TAG=null Signed-off-by: Matan Avital --- .github/actions/tag-action/action.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/actions/tag-action/action.yaml b/.github/actions/tag-action/action.yaml index 6274472f..37a4dbf2 100644 --- a/.github/actions/tag-action/action.yaml +++ b/.github/actions/tag-action/action.yaml @@ -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