From 66e6370ea8d4b5cf89622f42214ca31092c0a258 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 18 Jul 2024 13:58:23 -0300 Subject: [PATCH] ci: update path-filter job condition in ci.yml (#2801) refactor: update path-filter job condition in ci.yml The path-filter job condition in ci.yml has been updated to include an additional check for the 'workflow_dispatch' event. This change ensures that the job runs when the event is triggered manually, in addition to when the pull request is approved or when it is not a draft PR. The updated condition improves the flexibility and coverage of the path-filter job. --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d746e52e4..507644550 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ on: required: false type: string pull_request: - types: [auto_merge_enabled] + types: [synchronize] pull_request_review: types: [submitted] @@ -28,7 +28,7 @@ concurrency: jobs: path-filter: # should run if the PR is approved,or if it's a manual run or if it is not a draft PR - if: ${{github.event.review.state == 'APPROVED' || github.event_name == 'workflow_dispatch' || github.event.pull_request.draft == false}} + if: ${{ (github.event.review.state == 'APPROVED' && github.event.pull_request.draft == false) || github.event_name == 'workflow_dispatch' }} name: Filter Paths runs-on: ubuntu-latest outputs: