Merge pull request #1163 from kubescape/change-wf

added validation for if ORIGIN_TAG=null
This commit is contained in:
matanshk
2023-03-23 11:17:06 +02:00
committed by GitHub
+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