update CI (#285)

* update CI

* authenticate request

* correct token name

* revert
This commit is contained in:
Sacha Weatherstone 2023-01-23 20:30:28 +10:00 committed by GitHub
parent 49d891c5e9
commit 044ea1b156
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,13 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: bufbuild/buf-setup-action@v1
with:
github_token: ${{ github.token }}
- uses: bufbuild/buf-lint-action@v1
- uses: bufbuild/buf-breaking-action@v1
with:
against: "https://github.com/${GITHUB_REPOSITORY}.git#branch=master"
- uses: bufbuild/buf-push-action@v1
with:
buf_token: ${{ secrets.BUF_TOKEN }}
draft: ${{ github.ref_name != 'master'}}