ci: run workflow only on protobuf file changes

This commit is contained in:
Lorenzo Delgado 2022-11-15 00:29:28 +01:00 committed by GitHub
parent 0489f60d56
commit 8eb6a84cfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.