chore: only run cpp action on its file change

pull/218/head
Ming Tsai 2021-04-16 14:43:30 -04:00 committed by GitHub
parent b5e2f48272
commit 69a8c37147
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 2 deletions

View File

@ -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