Skip to content

Commit f3d28e9

Browse files
committed
ci: pre-populate synthtool cache to avoid race condition
Temporarily add pull_request trigger to verify the fix. TAG=agy CONV=acb0ee9b-3d87-4b9e-b3c6-0d4aa3efbd35
1 parent 357c62e commit f3d28e9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/regenerate-all.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
pull_request:
78

89
permissions:
910
contents: read
@@ -41,6 +42,11 @@ jobs:
4142
version=$(sed -n 's/^version: *//p' librarian.yaml)
4243
go run "github.com/googleapis/librarian/cmd/librarian@${version}" install
4344
45+
- name: Pre-populate Synthtool Cache
46+
run: |
47+
mkdir -p ~/.cache/synthtool
48+
git clone --recurse-submodules --single-branch https://github.com/googleapis/synthtool.git ~/.cache/synthtool/synthtool
49+
4450
- name: Regenerate
4551
run: |
4652
version=$(sed -n 's/^version: *//p' librarian.yaml)

0 commit comments

Comments
 (0)