Skip to content

Commit ccb91e8

Browse files
committed
update ci
1 parent 7588448 commit ccb91e8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sql-review.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)