You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by ju...@apache.org on 2023/10/28 09:58:28 UTC

(dubbo-go) branch main updated: ci: Clone from target branch (#2468)

This is an automated email from the ASF dual-hosted git repository.

justxuewei pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git


The following commit(s) were added to refs/heads/main by this push:
     new 918f22a2d ci: Clone from target branch (#2468)
918f22a2d is described below

commit 918f22a2d7c2081bb6440d4a5af1bc98594ad9b0
Author: Xuewei Niu <ju...@apache.org>
AuthorDate: Sat Oct 28 17:58:22 2023 +0800

    ci: Clone from target branch (#2468)
    
    We are maintaining several branches at this time, e.g. release-3.0 and
    main. However, cloning dubbo-go-samples for integrate testing is still from
    master. This leads to CI failure on old branch, like release-3.0, when the
    master branch have received some breaking changes. Therefore, the
    dubbo-go-samples' branch is required to keep same as the target branch.
    
    Signed-off-by: Xuewei Niu <ju...@apache.org>
---
 .github/workflows/github-actions.yml | 4 +++-
 integrate_test.sh                    | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml
index 1c25fc534..6fe4a8515 100644
--- a/.github/workflows/github-actions.yml
+++ b/.github/workflows/github-actions.yml
@@ -2,7 +2,9 @@ name: CI
 
 on:
   push:
-    branches: "*"
+    branches:
+      - main
+      - 'release-*'
   pull_request:
     branches: "*"
 
diff --git a/integrate_test.sh b/integrate_test.sh
index f8ca76942..a0f88a076 100644
--- a/integrate_test.sh
+++ b/integrate_test.sh
@@ -36,7 +36,7 @@ echo "github pull request base branch -> $3"
 echo "github pull request head branch -> ${GITHUB_HEAD_REF}"
 
 echo "use dubbo-go-samples $3 branch for integration testing"
-git clone -b master https://github.com/apache/dubbo-go-samples.git samples && cd samples
+git clone -b $3 https://github.com/apache/dubbo-go-samples.git samples && cd samples
 
 # update dubbo-go to current commit id
 go mod edit -replace=dubbo.apache.org/dubbo-go/v3=github.com/"$1"/v3@"$2"