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

Commit

Permalink
chore(java): ignore return code 28 in README autosynth job (#157)
Browse files Browse the repository at this point in the history
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/e0b67e3f-a3e7-4b49-b639-daf63d3e1009/targets

- [ ] To automatically regenerate this PR, check this box.

Source-Link: googleapis/synthtool@7db8a6c
  • Loading branch information
yoshi-automation committed Nov 10, 2020
1 parent 79c953b commit 3c5ad9c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion .kokoro/readme.sh
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-os-config \
--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
Expand Up @@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-os-config.git",
"sha": "e657a0143d5111a60a4a8be38964792203ba0bcc"
"sha": "79c953b9619a1436d85d55cb81f3eb39a3bfc3ab"
}
},
{
Expand All @@ -19,7 +19,7 @@
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "c7824ea48ff6d4d42dfae0849aec8a85acd90bd9"
"sha": "7db8a6c5ffb12a6e4c2f799c18f00f7f3d60e279"
}
}
],
Expand Down

0 comments on commit 3c5ad9c

Please sign in to comment.