forked from OfficeDev/teams-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (53 loc) · 1.83 KB
/
sdk-api-doc.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: SDK API docs
on:
push:
branches:
- main
- release/**
paths:
- packages/sdk/src/**
jobs:
generate:
name: Generate SDK API docs
strategy:
matrix:
os: [ubuntu-latest]
node-version: [14]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.CD_PAT }}
- name: Setup node
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
- name: Setup project
run: |
npm run setup
- name: Generate sdk api doc
run: |
npm run build:api-markdown
working-directory: ./packages/sdk
- name: Commit doc changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "docs(sdk): update API"
# Optional. Used by `git-commit`.
# See https://git-scm.com/docs/git-commit#_options
commit_options: '--no-verify --signoff'
# Optional glob pattern of files which should be added to the commit
# Defaults to all (.)
# See the `pathspec`-documentation for git
# - https://git-scm.com/docs/git-add#Documentation/git-add.txt-ltpathspecgt82308203
# - https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefpathspecapathspec
file_pattern: docs/sdk/*.md
# Optional local file path to the repository
# Defaults to the root of the repository
repository: .
# Optional. Skip internal call to `git fetch`
skip_fetch: true
# Optional. Prevents the shell from expanding filenames.
# Details: https://www.gnu.org/software/bash/manual/html_node/Filename-Expansion.html
disable_globbing: true