Skip to content

Update GraphQL Docs #151784

Update GraphQL Docs

Update GraphQL Docs #151784

Workflow file for this run

name: Update GraphQL Docs
on:
schedule:
- cron: '*/15 * * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
- name: build docs
env:
GITHUB_TOKEN: ${{secrets.PUSH_TOKEN}}
KONTIST_CLIENT_ID: ${{secrets.DOCS_CLIENT_ID}}
KONTIST_CLIENT_SECRET: ${{secrets.DOCS_CLIENT_SECRET}}
KONTIST_USERNAME: ${{secrets.DOCS_USER}}
KONTIST_PASSWORD: ${{secrets.DOCS_PASSWORD}}
KONTIST_CLIENT_SCOPES: accounts,users,transactions,transfers,subscriptions,statements
run: |
./update_docs.sh $(npx kontist token)
git config --global user.email "[email protected]"
git config --global user.name "GitHub"
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/kontist/kontist.github.io.git
git checkout master
git diff --quiet && git diff --staged --quiet || (git commit -am "Update docs with GraphQL changes"; git push origin master)