File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change 2626 - name : Checkout Repository
2727 uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
2828
29+ # Checkout only the proto directory from the Permify repository
30+ - name : Checkout Permify Proto Files
31+ uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
32+ with :
33+ repository : Permify/permify
34+ ref : master
35+ sparse-checkout : proto
36+ path : permify-repo
37+
38+ # Copy proto files into the local proto directory
39+ - name : Copy Proto Files
40+ run : |
41+ rm -rf proto
42+ cp -R permify-repo/proto/. proto/
43+ rm -rf permify-repo
44+
2945 # Setup Node.js
3046 - name : Setup Node.js
3147 uses : actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
@@ -38,15 +54,15 @@ jobs:
3854 - name : Install Dependencies
3955 run : yarn install --frozen-lockfile --non-interactive
4056
41- # Setup Buf CLI - will pull proto from buf.build/permifyco/permify
57+ # Setup Buf CLI
4258 - name : Setup Buf
4359 run : |
4460 BUF_VERSION="1.57.0"
4561 curl -sSL "https://github.com/bufbuild/buf/releases/download/v${BUF_VERSION}/buf-Linux-x86_64" -o "${RUNNER_TEMP}/buf"
4662 chmod +x "${RUNNER_TEMP}/buf"
4763 echo "${RUNNER_TEMP}" >> "${GITHUB_PATH}"
4864
49- # Generate TypeScript code from Buf Schema Registry
65+ # Generate TypeScript code from the downloaded proto files
5066 - name : Generate Code with Buf
5167 run : yarn buf:generate
5268
You can’t perform that action at this time.
0 commit comments