From 554ff16dd5139b57866f188f45554804cb0ea198 Mon Sep 17 00:00:00 2001 From: Vicente Cheng Date: Thu, 24 Aug 2023 12:29:23 +0800 Subject: [PATCH] action: correct the target image version - We should compare the same version image Signed-off-by: Vicente Cheng (cherry picked from commit 1450a3f4e0cb0f172b20d64fdb10f912528f68f7) --- .github/workflows/installer-pr.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/installer-pr.yml b/.github/workflows/installer-pr.yml index 4dead9c..232f11c 100644 --- a/.github/workflows/installer-pr.yml +++ b/.github/workflows/installer-pr.yml @@ -12,6 +12,11 @@ jobs: container: image: registry.suse.com/bci/bci-base:15.4 steps: + - uses: jungwinter/split@v2 + id: spliter + with: + msg: ${{ github.ref_name }} + separator: '-' - name: Install docker run: zypper ref && zypper -n install docker - name: Pull new image @@ -27,7 +32,7 @@ jobs: chmod +x /usr/bin/container-diff - name: Get current OS image from installer run: | - curl -sfL https://raw.githubusercontent.com/harvester/harvester-installer/master/scripts/package-harvester-os -o /tmp/package-harvester-os + curl -sfL https://raw.githubusercontent.com/harvester/harvester-installer/${{ steps.spliter.outputs._0 }}/scripts/package-harvester-os -o /tmp/package-harvester-os grep '^BASE_OS_IMAGE="rancher/harvester-os:' /tmp/package-harvester-os > /tmp/tmp-env - name: Run container-diff run: |