From 0225c0d283f816a582a762fb7b594f56ef1a7c44 Mon Sep 17 00:00:00 2001 From: Prafull Ladha Date: Thu, 2 Sep 2021 19:55:44 +0530 Subject: [PATCH] Post jobs to not fail the jobs with no tag change (#163) --- .github/workflows/build.yaml | 3 +++ build/self-signer-utility.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 15a5496..c72976e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -20,6 +20,9 @@ jobs: with: fetch-depth: 2 + - name: Install yq + run: make install-yq + - name: Check Tag Change id: changetag shell: bash diff --git a/build/self-signer-utility.sh b/build/self-signer-utility.sh index 6740107..0bfed58 100755 --- a/build/self-signer-utility.sh +++ b/build/self-signer-utility.sh @@ -5,7 +5,7 @@ echo "Your current tag is ${tag}" currentCommit=$(git rev-parse HEAD) lastCommit=$(git rev-parse @~) -git diff "${lastCommit}" "${currentCommit}" cockroachdb/values.yaml | grep "$tag" | grep + +git diff "${lastCommit}" "${currentCommit}" cockroachdb/values.yaml | grep -w "$tag" | grep + if [[ $? -ne 0 ]]; then echo "You have not changed the tag of selfSigner utility" exit 1