From c851d643b39592a5efa1f690cdc44235d80bfc4d Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Thu, 9 Nov 2023 14:28:32 +0400 Subject: [PATCH] Fixed smart CI (#20980) --- .github/actions/smart-ci/smart_ci.py | 10 +++++----- .github/workflows/linux.yml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/actions/smart-ci/smart_ci.py b/.github/actions/smart-ci/smart_ci.py index 3430519f717..6c281cc01cd 100644 --- a/.github/actions/smart-ci/smart_ci.py +++ b/.github/actions/smart-ci/smart_ci.py @@ -170,11 +170,11 @@ def main(): is_postcommit = not pr if is_postcommit: logger.info(f"The run is a post-commit run, executing full validation scope for all components") - - no_match_files_changed = 'no-match-files' in [label.name for label in pr.labels] - if no_match_files_changed: - logger.info(f"There are changed files that don't match any pattern in labeler config, " - f"executing full validation scope for all components") + else: + no_match_files_changed = 'no-match-files' in [label.name for label in pr.labels] + if no_match_files_changed: + logger.info(f"There are changed files that don't match any pattern in labeler config, " + f"executing full validation scope for all components") run_full_scope = is_postcommit or no_match_files_changed diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 51c8146ae3b..a4b6cae7365 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -49,7 +49,7 @@ jobs: uses: ./.github/actions/smart-ci with: repository: ${{ github.repository }} - pr: ${{ github.event.pull_request.number }} + pr: ${{ github.event.number }} commit_sha: ${{ github.sha }} component_pattern: "category: (.*)" repo_token: ${{ secrets.GITHUB_TOKEN }}