forked from meshery/meshery
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 1.05 KB
/
graphql.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: GraphQL API Documentation
on:
push:
branches:
- "master"
paths:
- "server/internal/graphql/schema/schema.graphql"
jobs:
test:
runs-on: ubuntu-22.04
if: github.repository == 'meshery/meshery'
steps:
- name: Checkout repo 🛎️
uses: actions/checkout@master
with:
token: ${{ secrets.GH_ACCESS_TOKEN }}
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.5
bundler-cache: true
- name: graphql-docs
run: |
cd docs
bundle install
bundle exec rake graphql:compile_docs
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
file_pattern: docs/
commit_user_name: l5io
commit_user_email: [email protected]
commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
commit_options: "--signoff"
commit_message: "[Docs] Generated documentation for GraphQL API"
branch: master