Merge pull request #5 from juanjiTech/fix/sync #18
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
on: # Apply to all pushes to `main` | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: bufbuild/[email protected] | |
with: | |
github_token: ${{ github.token }} | |
- uses: bufbuild/[email protected] | |
with: | |
buf_token: ${{ secrets.BUF_TOKEN }} | |
breaking: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: bufbuild/[email protected] | |
with: | |
github_token: ${{ github.token }} | |
- uses: bufbuild/[email protected] | |
with: | |
against: 'https://github.com/juanjiTech/jTerm-proto.git#branch=main' | |
buf_token: ${{ secrets.BUF_TOKEN }} | |
generate: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
needs: | |
- lint | |
- breaking | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: 'stable' | |
- run: go install github.com/grpc-ecosystem/protoc-gen-grpc-gateway-ts | |
- uses: bufbuild/[email protected] | |
with: | |
github_token: ${{ github.token }} | |
- run: rm -rf ./gen && buf generate && go mod tidy | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: 'update: automatic generate new proto' |