Schema Updater #252
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: Schema Updater | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 8 * * 1-5" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: 'stable' | |
- name: Display Go version | |
run: go version | |
- name: Install schema generator | |
run: go install github.com/atombender/[email protected] | |
- name: generate schema | |
run: make generate_all | |
- name: Test | |
run: go test -coverprofile=coverage.out -covermode=atomic -v --race . | |
- name: Commit changes | |
uses: EndBug/add-and-commit@v9 | |
with: | |
default_author: user_info | |
message: 'Updates API schema' | |
add: '*.go' |