Skip to content

Commit baba739

Browse files
Google APIscopybara-github
authored andcommitted
fix: Don't include generator test protos in the API index.
Keep `googleapis` and `googleapis-api-index-generator` separate when generating the API index. The index generator recurses down the directory structure... which means that test files in the generator's `test` directory are ending up being treated as APIs with a directory path of `gen/test/...` Fixes googleapis/googleapis-api-index-generator#18 Committer: @jskeet PiperOrigin-RevId: 387371705
1 parent fa5dd8d commit baba739

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/generate_api_index.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
uses: actions/[email protected]
1212
- name: Checkout googleapis (this repository)
1313
uses: actions/checkout@v2
14+
with:
15+
path: googleapis
1416
- name: Checkout index generator
1517
uses: actions/checkout@v2
1618
with:
@@ -19,10 +21,11 @@ jobs:
1921
- name: Generate API index
2022
run: |
2123
gen/scripts/generate-schema.sh
22-
gen/scripts/generate-index.sh $PWD
23-
cp gen/tmp/api-index-v1.json $PWD
24+
gen/scripts/generate-index.sh $PWD/googleapis
25+
cp gen/tmp/api-index-v1.json $PWD/googleapis
2426
- name: Commit API index
2527
run: |
28+
cd googleapis
2629
[[ ! $(git diff --exit-code api-index-v1.json) ]] && echo "Nothing to commit." && exit 0
2730
git config user.name "Google APIs"
2831
git add api-index-v1.json

0 commit comments

Comments
 (0)