Skip to content

Commit 7588448

Browse files
committed
update file filter
1 parent 824aa45 commit 7588448

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ sql-review:
2121
- echo "get changed files:"
2222
- git fetch origin ${CI_MERGE_REQUEST_TARGET_BRANCH_NAME}
2323
# get changed files in GitLab merge request: https://forum.gitlab.com/t/ci-cd-pipeline-get-list-of-changed-files/26847/3
24-
- FILES=$(git diff-tree --no-commit-id --diff-filter=AM --name-only -r origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME -r $CI_COMMIT_SHA)
24+
- FILES=$(git diff-tree --no-commit-id --diff-filter=AM --name-only -r origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME -r $CI_COMMIT_SHA -- '*.sql')
2525
- echo $FILES
2626
# https://gitlab.com/gitlab-org/gitlab-runner/-/issues/2672
2727
- bash $CI_PROJECT_DIR/.gitlab/sql-review.sh --files="$FILES" --api="$SQL_REVIEW_API"

0 commit comments

Comments
 (0)