Fixed smart CI (#20980)

This commit is contained in:
Ilya Lavrenov authored and GitHub committed 2023-11-09 11:28:32 +01:00
1 parent d6852598ce
commit c851d643b3
2 files changed
+6 -6

No files matched your search

+5 -5
View File
@@ -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
+1 -1
View File
@@ -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 }}