Skip to content

Commit b48cbd3

Browse files
chore(java): ignore return code 28 in README autosynth job (#518)
Exit code 28 is returned if no changes are required and should not be considered a failure. Source-Author: Jeff Ching <[email protected]> Source-Date: Mon Nov 9 14:51:28 2020 -0800 Source-Repo: googleapis/synthtool Source-Sha: 7db8a6c5ffb12a6e4c2f799c18f00f7f3d60e279 Source-Link: googleapis/synthtool@7db8a6c
1 parent 45535c4 commit b48cbd3

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.kokoro/readme.sh

+10-1
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,18 @@ echo "https://${GITHUB_TOKEN}:@github.com" >> ~/.git-credentials
2828
git config --global credential.helper 'store --file ~/.git-credentials'
2929

3030
python3.6 -m pip install git+https://github.com/googleapis/synthtool.git#egg=gcp-synthtool
31+
32+
set +e
3133
python3.6 -m autosynth.synth \
3234
--repository=googleapis/java-bigtable \
3335
--synth-file-name=.github/readme/synth.py \
3436
--metadata-path=.github/readme/synth.metadata \
3537
--pr-title="chore: regenerate README" \
36-
--branch-suffix="readme"
38+
--branch-suffix="readme"
39+
40+
# autosynth returns 28 to signal there are no changes
41+
RETURN_CODE=$?
42+
if [[ ${RETURN_CODE} -ne 0 && ${RETURN_CODE} -ne 28 ]]
43+
then
44+
exit ${RETURN_CODE}
45+
fi

synth.metadata

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/java-bigtable.git",
7-
"sha": "9905104028cdde0e04dc2b9890a9fc1a25438adf"
7+
"sha": "45535c4e7d2bffd12992ddd68ac05f0b65b4f62e"
88
}
99
},
1010
{
@@ -19,7 +19,7 @@
1919
"git": {
2020
"name": "synthtool",
2121
"remote": "https://github.com/googleapis/synthtool.git",
22-
"sha": "c7824ea48ff6d4d42dfae0849aec8a85acd90bd9"
22+
"sha": "7db8a6c5ffb12a6e4c2f799c18f00f7f3d60e279"
2323
}
2424
}
2525
],

0 commit comments

Comments
 (0)