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
|
# GitHub Action to run cpplint recursively on all pushes and pull requests
|
||||||
# https://github.com/cpplint/GitHub-Action-for-cpplint
|
# https://github.com/cpplint/GitHub-Action-for-cpplint
|
||||||
|
|
||||||
name: cpplint
|
name: C++
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
paths: '**/**.cpp'
|
||||||
|
pull_request:
|
||||||
|
branches: [ main ]
|
||||||
|
paths: '**/**.cpp'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
cpplint:
|
cpplint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Reference in New Issue