ci: run workflow only on protobuf file changes

This commit is contained in:
Lorenzo Delgado 2022-11-15 00:23:59 +01:00
parent 0489f60d56
commit 0f3954c875
No known key found for this signature in database
GPG Key ID: 3F2308060F9292F9
2 changed files with 19 additions and 1 deletions

11
.github/workflows/ci-ignore.yml vendored Normal file
View File

@ -0,0 +1,11 @@
name: ci
on:
pull_request:
ignore-paths:
- '**.proto'
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required"'

View File

@ -1,12 +1,19 @@
name: ci
on: pull_request
on:
pull_request:
paths:
- '**.proto'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: bufbuild/buf-setup-action@v1
- uses: bufbuild/buf-lint-action@v1
- uses: bufbuild/buf-breaking-action@v1
with:
# The 'main' branch of the GitHub repository that defines the module.