git: 5889ab4b1c79 - main - github: limit paths for style workflow

From: Warner Losh <imp_at_FreeBSD.org>
Date: Fri, 06 Dec 2024 01:08:35 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=5889ab4b1c79e9714390b65ef60a9d634e7ab45d

commit 5889ab4b1c79e9714390b65ef60a9d634e7ab45d
Author:     Ahmad Khalifa <ahmadkhalifa570@gmail.com>
AuthorDate: 2024-12-01 16:23:30 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-12-06 00:59:51 +0000

    github: limit paths for style workflow
    
    Signed-off-by: Ahmad Khalifa <ahmadkhalifa570@gmail.com>
    Reviewed by: imp
    Pull Request: https://github.com/freebsd/freebsd-src/pull/1538
---
 .github/workflows/style.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml
index 0e7c1d8ca6d8..da7032e03eae 100644
--- a/.github/workflows/style.yml
+++ b/.github/workflows/style.yml
@@ -6,6 +6,7 @@ on:
   pull_request: # maybe pull_request_target
     branches: [ main ]
     types: [ opened, reopened, edited, synchronize ]
+    paths: [ '**.S', '**.c', '**.cc', '**.cpp', '**.h', '**.hh', '**.hpp' ]
 
 permissions:
   contents: read