Skip to content

Commit

Permalink
chore(java): ignore return code 28 in README autosynth job (#843)
Browse files Browse the repository at this point in the history
Exit code 28 is returned if no changes are required and should not be considered a failure.
  • Loading branch information
chingor13 authored Nov 9, 2020
1 parent 1f1148d commit 7db8a6c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion synthtool/gcp/templates/java_library/.kokoro/readme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,18 @@ echo "https://${GITHUB_TOKEN}:@github.com" >> ~/.git-credentials
git config --global credential.helper 'store --file ~/.git-credentials'

python3.6 -m pip install git+https://github.com/googleapis/synthtool.git#egg=gcp-synthtool

set +e
python3.6 -m autosynth.synth \
--repository={{metadata['repo']['repo']}} \
--synth-file-name=.github/readme/synth.py \
--metadata-path=.github/readme/synth.metadata \
--pr-title="chore: regenerate README" \
--branch-suffix="readme"
--branch-suffix="readme"

# autosynth returns 28 to signal there are no changes
RETURN_CODE=$?
if [[ ${RETURN_CODE} -ne 0 && ${RETURN_CODE} -ne 28 ]]
then
exit ${RETURN_CODE}
fi

0 comments on commit 7db8a6c

Please sign in to comment.