Skip to content

Commit

Permalink
.github: update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jzelinskie committed May 6, 2022
1 parent 65c7986 commit ba0bcdc
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/build.yaml → .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: "Build"
name: "Lint"
on:
push:
branches:
Expand All @@ -13,23 +13,21 @@ jobs:
name: "Lint"
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v2"
- uses: "bewuethr/[email protected]"
- uses: "actions/checkout@v3"
- uses: "authzed/actions/yaml-lint@main"
- uses: "bufbuild/buf-setup-action@v1"
with:
config-file: ".yamllint"
- uses: "bufbuild/[email protected]"
with:
version: "0.48.2"
version: "1.4.0"
- uses: "bufbuild/buf-lint-action@v1"
- uses: "bufbuild/buf-breaking-action@v0.4.0"
- uses: "bufbuild/buf-breaking-action@v1"
if: "github.event_name == 'pull_request'"
env:
BUF_INPUT_HTTPS_USERNAME: "${{ github.actor }}"
BUF_INPUT_HTTPS_PASSWORD: "${{ github.token }}"
with:
against: "https://github.com/authzed/api.git#branch=main"
buf_token: "${{ secrets.BUF_REGISTRY_TOKEN }}"
- uses: "bufbuild/buf-push-action@v0.3.0"
- uses: "bufbuild/buf-push-action@v1"
if: "github.event_name == 'push' && github.ref == 'refs/heads/main'"
with:
buf_token: "${{ secrets.BUF_REGISTRY_TOKEN }}"

0 comments on commit ba0bcdc

Please sign in to comment.