File tree Expand file tree Collapse file tree
synthtool/gcp/templates/java_library/.kokoro Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,9 +28,18 @@ echo "https://${GITHUB_TOKEN}:@github.com" >> ~/.git-credentials
2828git config --global credential.helper ' store --file ~/.git-credentials'
2929
3030python3.6 -m pip install git+https://github.com/googleapis/synthtool.git#egg=gcp-synthtool
31+
32+ set +e
3133python3.6 -m autosynth.synth \
3234 --repository={{metadata[' repo' ][' repo' ]}} \
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
You can’t perform that action at this time.
0 commit comments