-
Notifications
You must be signed in to change notification settings - Fork 35
39 lines (39 loc) · 1.12 KB
/
doc.yaml
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: Generate SDK and Docs
on:
pull_request:
branches: [ '*' ]
paths-ignore:
- 'examples/**'
jobs:
generate-sdk:
name: Check if SDK is up to date
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.19.5
- uses: actions/checkout@v4 # Updated to use Node.js 20
- name: Check SDK
run: |
make generate-sdk
if [[ -n $(git status -s) ]]
then
echo "SDK is not up to date, regenerate it by running 'make generate-sdk' and commit your changes."
exit 1
fi
generate-docs:
name: Check if documentation is up to date
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.19.5
- uses: actions/checkout@v4 # Updated to use Node.js 20
- name: Check Documentation
run: |
make generate-docs
if [[ -n $(git status -s) ]]
then
echo "Documentation is not up to date, regenerate it by running 'make generate-docs' and commit your changes."
exit 1
fi