Skip to content

Commit

Permalink
chore(java): ignore return code 28 in README autosynth job (googleapi…
Browse files Browse the repository at this point in the history
…s#303)

This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/d9de2598-aedb-41e8-ba93-66623c5d1556/targets

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

Source-Link: googleapis/synthtool@7db8a6c
  • Loading branch information
yoshi-automation authored Nov 10, 2020
1 parent d152f23 commit 4d59f09
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion java-resourcemanager/.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-resourcemanager \
--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 java-resourcemanager/synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-resourcemanager.git",
"sha": "668c6a3f2c3848d1de191134ec79eb38356c50cf"
"sha": "125162a103e568d102e7a65fd6c744117e3983a1"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "c7824ea48ff6d4d42dfae0849aec8a85acd90bd9"
"sha": "7db8a6c5ffb12a6e4c2f799c18f00f7f3d60e279"
}
}
],
Expand Down

0 comments on commit 4d59f09

Please sign in to comment.