Skip to content

Commit

Permalink
ci: refine triggers
Browse files Browse the repository at this point in the history
Ensure the buf workflow includes labeled/unlabeled pull_request events
so checks re-run on label changes, and separate Buf skip.

- Separate Buf checks into dedicated workflow
- Add labeled/unlabeled triggers to re-run checks
  • Loading branch information
YusukeShimizu committed Feb 16, 2025
1 parent 73e8c75 commit 95736fe
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/buf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Buf

on:
push:
branches: [master]
pull_request:
types: [opened, synchronize, reopened, labeled, unlabeled]
branches: [master]

permissions:
contents: read

jobs:
buf-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bufbuild/buf-action@v1
13 changes: 1 addition & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,12 @@ on:
branches:
- master
pull_request:
branches: [master]
types: [opened, synchronize, reopened]

env:
SLOW_MACHINE: 1

jobs:
buf:
runs-on: ubuntu-latest

steps:
# Run `git checkout`
- name: Checkout code
uses: actions/checkout@v4
# Run the `buf` CLI
- name: Buf Action
uses: bufbuild/buf-action@v1

unit-tests:
runs-on: ubuntu-latest

Expand Down

0 comments on commit 95736fe

Please sign in to comment.