From: Ales Musil <[email protected]>

The ovn-fake-multinode workflow can be triggered manually,
however the definition didn't respect the branch for the manual
run and always used main branch. Make sure that the correct
branch is used for the ovn-fake-multinode workflow.

Fixes: 033f5bebf94d ("CI: Add a couple of periodic jobs using 
ovn-fake-multinode.")
Signed-off-by: Ales Musil <[email protected]>
Acked-by: Mark Michelson <[email protected]>
(cherry picked from commit 1c9656714c601b128ca0a6bed47050c77e98fb8b)
---
 .github/workflows/ovn-fake-multinode-tests.yml | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/ovn-fake-multinode-tests.yml 
b/.github/workflows/ovn-fake-multinode-tests.yml
index 2f3435d4f..497225332 100644
--- a/.github/workflows/ovn-fake-multinode-tests.yml
+++ b/.github/workflows/ovn-fake-multinode-tests.yml
@@ -17,7 +17,7 @@ jobs:
     strategy:
       matrix:
         cfg:
-        - { branch: "main" }
+        - { branch: "${{ github.ref_name }}" }
     env:
       RUNC_CMD: podman
       OS_IMAGE: "fedora:42"
@@ -87,15 +87,15 @@ jobs:
       fail-fast: false
       matrix:
         cfg:
-        - { branch: "main", testsuiteflags: ""}
+        - { branch: "${{ github.ref_name }}", testsuiteflags: ""}
     name: multinode tests ${{ join(matrix.cfg.*, ' ') }}
     env:
       RUNC_CMD: podman
       OS_IMAGE: "fedora:42"
       CENTRAL_IMAGE: "ovn/ovn-multi-node:${{ matrix.cfg.branch }}"
-      CHASSIS_IMAGE: "ovn/ovn-multi-node:main"
-      RELAY_IMAGE: "ovn/ovn-multi-node:main"
-      GW_IMAGE: "ovn/ovn-multi-node:main"
+      CHASSIS_IMAGE: "ovn/ovn-multi-node:${{ github.ref_name }}"
+      RELAY_IMAGE: "ovn/ovn-multi-node:${{ github.ref_name }}"
+      GW_IMAGE: "ovn/ovn-multi-node:${{ github.ref_name }}"
       # Disable SSL for now. Revisit this if required.
       ENABLE_SSL: no
       CC: gcc
@@ -134,11 +134,11 @@ jobs:
 
     - uses: actions/download-artifact@v8
       with:
-        name: test-main-image
+        name: test-${{ github.ref_name }}-image
 
     - name: Load podman image
       run: |
-        sudo podman load --input ovn_main_image.tar
+        sudo podman load --input ovn_${{ github.ref_name }}_image.tar
 
     - name: Check out ovn-fake-multi-node
       uses: actions/checkout@v6
-- 
2.47.1

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to