Skip to content

chore(deps): bump actions/upload-pages-artifact from 1 to 2 #1244

chore(deps): bump actions/upload-pages-artifact from 1 to 2

chore(deps): bump actions/upload-pages-artifact from 1 to 2 #1244

Workflow file for this run

name: Model
on:
push:
branches:
- v3
- main
- stable
pull_request:
types: [labeled, opened, reopened, synchronize]
jobs:
##
## Job: Buf Lint
##
buf-lint:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
permissions:
contents: "read"
steps:
- name: "Setup: Checkout"
uses: actions/checkout@v3
- name: "Setup: Buf"
uses: bufbuild/buf-setup-action@v1
with:
github_token: ${{ github.token }}
- name: "Check: Buf Lint"
uses: bufbuild/buf-lint-action@v1
with:
input: proto
##
## Job: Buf Breaking
##
buf-breaking:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
permissions:
contents: "read"
continue-on-error: ${{ contains(github.event.pull_request.labels.*.name, 'ci:buf-breaking-ignore') }}
steps:
- name: "Setup: Checkout"
uses: actions/checkout@v3
- name: "Setup: Buf"
uses: bufbuild/buf-setup-action@v1
with:
github_token: ${{ github.token }}
- name: "Check: Buf Breaking"
uses: bufbuild/buf-breaking-action@v1
continue-on-error: ${{ contains(github.event.pull_request.labels.*.name, 'ci:buf-breaking-ignore') }}
with:
against: https://github.com/elide-dev/v3.git#branch=v3
input: proto
##
## Job: Buf Push
##
buf-push:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
needs: ["buf-lint", "buf-breaking"]
if: |
(
github.ref == 'refs/heads/stable' ||
github.ref == 'refs/heads/v3' ||
startsWith(github.ref, 'refs/tags/v')
)
permissions:
contents: "read"
steps:
- name: "Setup: Checkout"
uses: actions/checkout@v3
- name: "Setup: Buf"
uses: bufbuild/buf-setup-action@v1
with:
github_token: ${{ github.token }}
- name: "Push: BSR"
uses: bufbuild/buf-push-action@v1
with:
buf_token: ${{ secrets.BUF_TOKEN }}
input: proto