NEOS-1639: add JobHook with Pre and Post Sync Timing Support #419
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: | |
pull_request: | |
paths: | |
- backend/protos/** | |
- BUF_VERSION | |
- buf.gen.yaml | |
- buf.work.yaml | |
name: Buf | |
permissions: | |
contents: read | |
pull-requests: write | |
jobs: | |
buf: | |
name: buf | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Retrieve Buf Version | |
id: buf-version | |
run: | | |
VER=$(cat BUF_VERSION) | |
echo "version=$VER" >> $GITHUB_OUTPUT | |
- name: Buf | |
uses: bufbuild/buf-action@v1 | |
with: | |
version: ${{ steps.buf-version.outputs.version }} | |
token: ${{ secrets.BUF_TOKEN }} | |
push: false # we don't want to push to the BSR | |
push_disable_create: true |