File tree 1 file changed +10
-1
lines changed
synthtool/gcp/templates/java_library/.kokoro
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,18 @@ echo "https://${GITHUB_TOKEN}:@github.com" >> ~/.git-credentials
28
28
git config --global credential.helper ' store --file ~/.git-credentials'
29
29
30
30
python3.6 -m pip install git+https://github.com/googleapis/synthtool.git#egg=gcp-synthtool
31
+
32
+ set +e
31
33
python3.6 -m autosynth.synth \
32
34
--repository={{metadata[' repo' ][' repo' ]}} \
33
35
--synth-file-name=.github/readme/synth.py \
34
36
--metadata-path=.github/readme/synth.metadata \
35
37
--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
You can’t perform that action at this time.
0 commit comments