Skip to content

Commit 67a8cc6

Browse files
committed
ci: use local templates via SYNTHTOOL_TEMPLATES to avoid parallel git conflict
This avoids parallel git checkout/pull race conditions by cloning the templates once and pointing SYNTHTOOL_TEMPLATES to it. TAG=agy CONV=acb0ee9b-3d87-4b9e-b3c6-0d4aa3efbd35
1 parent f3d28e9 commit 67a8cc6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/regenerate-all.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
env:
1717
PANDOC_VERSION: 3.8.2
18+
SYNTHTOOL_TEMPLATES: /home/runner/synthtool/synthtool/gcp/templates
1819

1920
steps:
2021
- name: Checkout
@@ -42,10 +43,9 @@ jobs:
4243
version=$(sed -n 's/^version: *//p' librarian.yaml)
4344
go run "github.com/googleapis/librarian/cmd/librarian@${version}" install
4445
45-
- name: Pre-populate Synthtool Cache
46+
- name: Clone Synthtool Templates
4647
run: |
47-
mkdir -p ~/.cache/synthtool
48-
git clone --recurse-submodules --single-branch https://github.com/googleapis/synthtool.git ~/.cache/synthtool/synthtool
48+
git clone --recurse-submodules --single-branch https://github.com/googleapis/synthtool.git /home/runner/synthtool
4949
5050
- name: Regenerate
5151
run: |

0 commit comments

Comments
 (0)