An action for generating graphql documents used by gqldoc.
See action.yml
name: Generate Document and Commit
on:
push:
branches:
- main
pull_request:
jobs:
update-docs:
name: Update Documents
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- name: Push Generated GraphQL Document Current Branch
uses: Code-Hex/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
schema: schema.graphql
output: doc_dir
The scripts and documentation in this project are released under the MIT License