You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ha...@apache.org on 2026/02/21 17:09:19 UTC
(superset) 01/01: feat(ci): only run precommit on change files
This is an automated email from the ASF dual-hosted git repository.
hainenber pushed a commit to branch feat/only-run-precommit-on-changed-files-in-pr
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 91ca9e51944aba9f44680d89b2930648be639d1d
Author: hainenber <do...@gmail.com>
AuthorDate: Sun Feb 22 00:09:02 2026 +0700
feat(ci): only run precommit on change files
Signed-off-by: hainenber <do...@gmail.com>
---
.github/workflows/pre-commit.yml | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml
index f1aa42b686f..c047ee3dca5 100644
--- a/.github/workflows/pre-commit.yml
+++ b/.github/workflows/pre-commit.yml
@@ -61,11 +61,17 @@ jobs:
restore-keys: |
pre-commit-v2-${{ runner.os }}-py${{ matrix.python-version }}-
+ - name: Get changed files
+ id: changed_files
+ uses: ./.github/actions/files-change-action
+ with:
+ output: ' '
+
- name: pre-commit
run: |
set +e # Don't exit immediately on failure
export SKIP=eslint-frontend,type-checking-frontend
- pre-commit run --all-files
+ pre-commit run --files ${{ steps.changed_files.outputs.files }}
PRE_COMMIT_EXIT_CODE=$?
git diff --quiet --exit-code
GIT_DIFF_EXIT_CODE=$?