Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

chore(java): ignore return code 28 in README autosynth job #320

Merged
merged 1 commit into from
Nov 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .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=googleapis/java-datalabeling \
--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
4 changes: 2 additions & 2 deletions synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-datalabeling.git",
"sha": "66041b9a6eed1d97c3413b78246390054d71bd74"
"sha": "33b2712cbb557a56af9ab65e646a2854a6a0fc4a"
}
},
{
Expand All @@ -19,7 +19,7 @@
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "c7824ea48ff6d4d42dfae0849aec8a85acd90bd9"
"sha": "7db8a6c5ffb12a6e4c2f799c18f00f7f3d60e279"
}
}
],
Expand Down