chore: only run cpp action on its file change
parent
b5e2f48272
commit
69a8c37147
|
@ -1,8 +1,15 @@
|
|||
# GitHub Action to run cpplint recursively on all pushes and pull requests
|
||||
# https://github.com/cpplint/GitHub-Action-for-cpplint
|
||||
|
||||
name: cpplint
|
||||
on: [push, pull_request]
|
||||
name: C++
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
paths: '**/**.cpp'
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
paths: '**/**.cpp'
|
||||
|
||||
jobs:
|
||||
cpplint:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
Loading…
Reference in New Issue