-
Notifications
You must be signed in to change notification settings - Fork 236
41 lines (34 loc) · 932 Bytes
/
schema.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
40
41
name: JSON Schema
on:
push:
branches:
- main
paths:
- "**/*.go"
- ".github/workflows/schema.yaml"
env:
GO_VERSION: "1.20.4"
jobs:
schema:
name: JSON Schema
runs-on: ubuntu-latest
steps:
- name: Checkout Source Code
uses: actions/checkout@v4
with:
token: ${{ secrets.MEGAEASE_BOT }}
- name: Setup Go Environment
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Build EaseProbe
run: make
- name: Generate JSON Schema
run: ./build/bin/easeprobe -j > resources/schema.json
- name: Commit JSON Schema
uses: EndBug/add-and-commit@v9
with:
message: "Update JSON Schema"
add: "resources/schema.json"
author_name: "GitHub Actions"
author_email: "[email protected]"