From b53909e771efbfdaa7078a2d425c277e6c903773 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Thu, 7 Aug 2025 09:44:45 +0200 Subject: [PATCH] update_workflow Signed-off-by: iabdalkader --- .github/workflows/format_check.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/format_check.yml b/.github/workflows/format_check.yml index 2f00793b6..7d101f8ff 100644 --- a/.github/workflows/format_check.yml +++ b/.github/workflows/format_check.yml @@ -2,17 +2,25 @@ name: Format Check on: push: + branches: + - 'main' paths: - '**/*.{c,cpp,cc,cxx,h,hpp}' + pull_request: - types: [opened, edited, reopened, synchronize] + types: + - opened + - edited + - reopened + - synchronize + branches: + - 'main' paths: - '**/*.{c,cpp,cc,cxx,h,hpp}' jobs: format-check: runs-on: ubuntu-latest - steps: - name: Checkout code uses: actions/checkout@v4