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

martijnvisser pushed a commit to branch allow_branch_specification
in repository 
https://gitbox.apache.org/repos/asf/flink-connector-shared-utils.git

commit 264470aaf8f0c65f2edca7cc6c1faa0f7371b7ee
Author: Martijn Visser <martijnvis...@apache.org>
AuthorDate: Mon Apr 24 13:49:00 2023 +0200

    [FLINK-31923][Build System] Allow specifying the branches for which the 
test needs to be run (default is: main)
    
    This enables weekly connector builds to be run against multiple branches
---
 .github/workflows/_testing.yml | 4 ++++
 .github/workflows/ci.yml       | 7 +++++++
 2 files changed, 11 insertions(+)

diff --git a/.github/workflows/_testing.yml b/.github/workflows/_testing.yml
index 130c476..6d2a0f3 100644
--- a/.github/workflows/_testing.yml
+++ b/.github/workflows/_testing.yml
@@ -35,3 +35,7 @@ jobs:
     with:
       flink_version: 1.16.1
       run_dependency_convergence: false
+  multiple-branches:
+    uses: ././github/workflows/ci.yml
+    with:
+      flink_compatibility:  [ {branch: main, version: {"1.17-SNAPSHOT", 
"1.18-SNAPSHOT" } } ]
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 26d841a..262527c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -46,6 +46,11 @@ on:
         required: false
         type: boolean
         default: true
+      flink_compatibility:
+        description: "Which branches need to run the scheduled weekly test"
+        required: false
+        type: string
+        default: main
 
 jobs:
   compile_and_test:
@@ -65,6 +70,8 @@ jobs:
 
       - name: Check out repository code
         uses: actions/checkout@v3
+        with:
+          ref: ${{ inputs.flink_compatibility.branch }}
 
       - name: Set JDK
         uses: actions/setup-java@v3

Reply via email to