mirror of
https://github.com/meshtastic/protobufs.git
synced 2026-04-20 22:13:55 +00:00
Update bufbuild GitHub Actions
This commit is contained in:
parent
fd19e4caaf
commit
e253751637
14 changed files with 134 additions and 151 deletions
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
|
|
@ -16,12 +16,9 @@ jobs:
|
|||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Buf
|
||||
uses: bufbuild/buf-setup-action@v1.30.0
|
||||
- name: Push to schema registry
|
||||
uses: bufbuild/buf-action@v1.2.0
|
||||
with:
|
||||
github_token: ${{ github.token }}
|
||||
|
||||
- name: Push to schema registry
|
||||
uses: bufbuild/buf-push-action@v1.2.0
|
||||
with:
|
||||
buf_token: ${{ secrets.BUF_TOKEN }}
|
||||
token: ${{ secrets.BUF_TOKEN }}
|
||||
push: true
|
||||
|
|
|
|||
10
.github/workflows/create_tag.yml
vendored
10
.github/workflows/create_tag.yml
vendored
|
|
@ -58,14 +58,14 @@ jobs:
|
|||
token: ${{ github.token }}
|
||||
|
||||
- name: Setup Buf
|
||||
uses: bufbuild/buf-setup-action@v1.30.0
|
||||
uses: bufbuild/buf-action@v1.2.0
|
||||
with:
|
||||
github_token: ${{ github.token }}
|
||||
token: ${{ secrets.BUF_TOKEN }}
|
||||
setup_only: true
|
||||
|
||||
- name: Push to schema registry
|
||||
# uses: bufbuild/buf-push-action@v1
|
||||
# with:
|
||||
# buf_token: ${{ secrets.BUF_TOKEN }}
|
||||
env:
|
||||
BUF_TOKEN: ${{ secrets.BUF_TOKEN }}
|
||||
run: |
|
||||
export BUF_TOKEN=${{ secrets.BUF_TOKEN }}
|
||||
buf push --tag ${{ steps.version.outputs.NEW_VERSION }}
|
||||
|
|
|
|||
10
.github/workflows/publish.yml
vendored
10
.github/workflows/publish.yml
vendored
|
|
@ -17,14 +17,14 @@ jobs:
|
|||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Buf
|
||||
uses: bufbuild/buf-setup-action@v1.30.0
|
||||
uses: bufbuild/buf-action@v1.2.0
|
||||
with:
|
||||
github_token: ${{ github.token }}
|
||||
token: ${{ secrets.BUF_TOKEN }}
|
||||
setup_only: true
|
||||
|
||||
- name: Push to schema registry
|
||||
# uses: bufbuild/buf-push-action@v1
|
||||
# with:
|
||||
# buf_token: ${{ secrets.BUF_TOKEN }}
|
||||
env:
|
||||
BUF_TOKEN: ${{ secrets.BUF_TOKEN }}
|
||||
run: |
|
||||
export BUF_TOKEN=${{ secrets.BUF_TOKEN }}
|
||||
buf push --tag ${{ github.ref_name }}
|
||||
|
|
|
|||
19
.github/workflows/pull_request.yml
vendored
19
.github/workflows/pull_request.yml
vendored
|
|
@ -2,6 +2,7 @@ name: pull-request
|
|||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
on: pull_request
|
||||
jobs:
|
||||
|
|
@ -12,17 +13,11 @@ jobs:
|
|||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Buf
|
||||
uses: bufbuild/buf-setup-action@v1.30.0
|
||||
- name: Buf PR Checks
|
||||
uses: bufbuild/buf-action@v1.2.0
|
||||
with:
|
||||
github_token: ${{ github.token }}
|
||||
|
||||
- name: Lint
|
||||
uses: bufbuild/buf-lint-action@v1.1.1
|
||||
|
||||
- name: Push to schema registry
|
||||
uses: bufbuild/buf-push-action@v1.2.0
|
||||
if: ${{ github.event_name != 'pull_request_target' && github.event_name != 'pull_request' }}
|
||||
with:
|
||||
buf_token: ${{ secrets.BUF_TOKEN }}
|
||||
draft: ${{ github.ref_name != 'master'}}
|
||||
token: ${{ secrets.BUF_TOKEN }}
|
||||
format: true
|
||||
lint: true
|
||||
breaking: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue