Skip to content

Commit 21ed463

Browse files
authored
Fix the job failure on merging the PRs without tag change (#168)
1 parent a501482 commit 21ed463

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/build.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ jobs:
2727
id: changetag
2828
shell: bash
2929
run: |
30-
./build/self-signer-utility.sh
31-
if [[ $? -eq 0 ]]; then
30+
output=$(./build/self-signer-utility.sh)
31+
echo $output | grep "You have not changed the tag of selfSigner utility"
32+
if [[ $? -ne 0 ]]; then
3233
echo ::set-output name=tagChange::true
3334
fi
3435

build/self-signer-utility.sh

-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,4 @@ lastCommit=$(git rev-parse @~)
88
git diff "${lastCommit}" "${currentCommit}" cockroachdb/values.yaml | grep -w "$tag" | grep +
99
if [[ $? -ne 0 ]]; then
1010
echo "You have not changed the tag of selfSigner utility"
11-
exit 1
1211
fi
13-
exit 0

0 commit comments

Comments
 (0)