docs(sync): recommend ALLOW as audit defaultEffect #84
This file contains hidden or 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/buf-setup-action@v1.26.1 | |
| with: | |
| github_token: ${{ github.token }} | |
| - uses: bufbuild/buf-lint-action@v1.0.3 | |
| with: | |
| buf_token: ${{ secrets.BUF_TOKEN }} | |
| breaking: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: bufbuild/buf-setup-action@v1.26.1 | |
| with: | |
| github_token: ${{ github.token }} | |
| - uses: bufbuild/buf-breaking-action@v1.1.3 | |
| with: | |
| against: 'https://github.com/juanjiTech/termium-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/buf-setup-action@v1.26.1 | |
| 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' |