Skip to content

Commit

Permalink
Post jobs to not fail the jobs with no tag change (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
prafull01 authored Sep 2, 2021
1 parent a5db937 commit 0225c0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
with:
fetch-depth: 2

- name: Install yq
run: make install-yq

- name: Check Tag Change
id: changetag
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion build/self-signer-utility.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0225c0d

Please sign in to comment.