build(deps): bump actions/setup-go from 4 to 5 (#459) #40
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]" |