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

Commit 8f6ecf3

Browse files
chore(java): ignore return code 28 in README autosynth job (#345)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/01cd0979-7ef1-4bfe-ad90-981b903afc4a/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: googleapis/synthtool@7db8a6c
1 parent dd74d14 commit 8f6ecf3

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

‎.kokoro/readme.sh‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,18 @@ echo "https://${GITHUB_TOKEN}:@github.com" >> ~/.git-credentials
2828
git config --global credential.helper 'store --file ~/.git-credentials'
2929

3030
python3.6 -m pip install git+https://github.com/googleapis/synthtool.git#egg=gcp-synthtool
31+
32+
set +e
3133
python3.6 -m autosynth.synth \
3234
--repository=googleapis/java-dlp \
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

‎synth.metadata‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/java-dlp.git",
7-
"sha": "ee1c8bb5109b4feb08acd1e23eaf5b67c7ba37d3"
7+
"sha": "dd74d14d1ac75268c82a8d9656f1dd04d8300a7e"
88
}
99
},
1010
{
@@ -19,7 +19,7 @@
1919
"git": {
2020
"name": "synthtool",
2121
"remote": "https://github.com/googleapis/synthtool.git",
22-
"sha": "c7824ea48ff6d4d42dfae0849aec8a85acd90bd9"
22+
"sha": "7db8a6c5ffb12a6e4c2f799c18f00f7f3d60e279"
2323
}
2424
}
2525
],

0 commit comments

Comments
 (0)