Skip to content
This repository was archived by the owner on Apr 1, 2024. It is now read-only.

Commit 962fc2b

Browse files
committed
fixed workflow
1 parent e4b54a5 commit 962fc2b

File tree

2 files changed

+30
-6
lines changed

2 files changed

+30
-6
lines changed

.github/workflows/doc.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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

.github/workflows/update.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@ jobs:
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:

0 commit comments

Comments
 (0)