Skip to content

Merge pull request #5 from juanjiTech/fix/sync #18

Merge pull request #5 from juanjiTech/fix/sync

Merge pull request #5 from juanjiTech/fix/sync #18

Workflow file for this run

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'