File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ sql-review:
55 - merge_requests
66 image : docker:stable
77 variables :
8+ VERSION : " main"
89 SQL_REVIEW_API : " " # This is the API for SQL reivew.
910 before_script :
1011 - apk update && apk add git
@@ -23,6 +24,8 @@ sql-review:
2324 # get changed files in GitLab merge request: https://forum.gitlab.com/t/ci-cd-pipeline-get-list-of-changed-files/26847/3
2425 - 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')
2526 - echo $FILES
27+ # TODO: change the url
28+ - curl -o ./sql-review.sh "https://raw.githubusercontent.com/ed-bytebase/sql-review-gitlab-ci/$VERSION/sql-review.sh"
2629 # https://gitlab.com/gitlab-org/gitlab-runner/-/issues/2672
2730 - bash $CI_PROJECT_DIR/.gitlab/sql-review.sh --files="$FILES" --api="$SQL_REVIEW_API"
2831 artifacts :
You can’t perform that action at this time.
0 commit comments