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.
This commit is contained in:
parent
2caec4fd72
commit
66e6370ea8
1 changed files with 2 additions and 2 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
|
@ -17,7 +17,7 @@ on:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [auto_merge_enabled]
|
types: [synchronize]
|
||||||
pull_request_review:
|
pull_request_review:
|
||||||
types: [submitted]
|
types: [submitted]
|
||||||
|
|
||||||
|
|
@ -28,7 +28,7 @@ concurrency:
|
||||||
jobs:
|
jobs:
|
||||||
path-filter:
|
path-filter:
|
||||||
# should run if the PR is approved,or if it's a manual run or if it is not a draft PR
|
# 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
|
name: Filter Paths
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue