refactor ci target to dubbo-go-samples main branch (#3032)
diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml
index 4a5fcca..d0a9ee2 100644
--- a/.github/workflows/github-actions.yml
+++ b/.github/workflows/github-actions.yml
@@ -114,7 +114,7 @@
- name: Integration Test
run: |
if [ "$GITHUB_EVENT_NAME" == "pull_request" ]; then
- ./integrate_test.sh ${{github.event.pull_request.head.repo.full_name}} ${{github.event.pull_request.head.sha}} ${{github.base_ref}}
+ ./integrate_test.sh ${{github.event.pull_request.head.repo.full_name}} ${{github.event.pull_request.head.sha}} main
elif [ "$GITHUB_EVENT_NAME" == "push" ]; then
./integrate_test.sh $GITHUB_REPOSITORY $GITHUB_SHA $GITHUB_REF_NAME
else
diff --git a/integrate_test.sh b/integrate_test.sh
index 374202c..6cc0712 100755
--- a/integrate_test.sh
+++ b/integrate_test.sh
@@ -25,7 +25,7 @@
echo "integrate-test root work-space -> ${ROOT_DIR}"
echo "use dubbo-go-samples $3 branch for integration testing"
-git clone -b $3 https://github.com/apache/dubbo-go-samples.git samples && cd samples
+git clone -b $3 https://github.com/apache/dubbo-go-samples.git samples --depth=1 && cd samples
# update dubbo-go to current commit id
if [ "$1" == "apache/dubbo-go" ]; then