This repository was archived by the owner on Apr 1, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +30
-6
lines changed Expand file tree Collapse file tree 2 files changed +30
-6
lines changed Original file line number Diff line number Diff line change 1+ name : doc
2+ on :
3+ pull_request : {}
4+ jobs :
5+ update-doc :
6+ runs-on : ubuntu-latest
7+ env :
8+ GITHUB_TARGET_SCHEMA : example/github/schema.graphql
9+ SHOPIFY_TARGET_SCHEMA : example/shopify/schema.graphql
10+ STARWARS_TARGET_SCHEMA : example/starwars/schema.graphql
11+ steps :
12+ - uses : actions/checkout@v2
13+ - name : Generate GitHub GraphQL Document
14+ uses : Code-Hex/gqldoc-actions@v1.0.7
15+ with :
16+ github-token : ${{ secrets.GITHUB_TOKEN }}
17+ schema : ${{ env.GITHUB_TARGET_SCHEMA }}
18+ output : example/github
19+ - name : Generate Shopify GraphQL Document
20+ uses : Code-Hex/gqldoc-actions@v1.0.7
21+ with :
22+ github-token : ${{ secrets.GITHUB_TOKEN }}
23+ schema : ${{ env.SHOPIFY_TARGET_SCHEMA }}
24+ output : example/shopify
25+ - name : Generate Starwars GraphQL Document
26+ uses : Code-Hex/gqldoc-actions@v1.0.7
27+ with :
28+ github-token : ${{ secrets.GITHUB_TOKEN }}
29+ schema : ${{ env.STARWARS_TARGET_SCHEMA }}
30+ output : example/starwars
Original file line number Diff line number Diff line change 1717 curl https://docs.github.com/public/schema.docs.graphql > $TARGET_SCHEMA
1818 env:
1919 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20- - name : Generate GitHub GraphQL Document
21- uses : Code-Hex/gqldoc-actions@v1.0.7
22- with :
23- github-token : ${{ secrets.GITHUB_TOKEN }}
24- schema : ${{ env.TARGET_SCHEMA }}
25- output : example/github
2620 - name : create pull request
2721 uses : gr2m/create-or-update-pull-request-action@v1.x
2822 env :
You can’t perform that action at this time.
0 commit comments