From c6d4b839ce53a18bbd685d16a475c872e3d7395c Mon Sep 17 00:00:00 2001
From: Oguz Ozturk <oguzkaganozt@gmail.com>
Date: Mon, 20 May 2024 14:46:21 +0300
Subject: [PATCH] .

Signed-off-by: Oguz Ozturk <oguzkaganozt@gmail.com>
---
 .github/workflows/docker-build-and-push-main-self-hosted.yaml | 2 +-
 .github/workflows/docker-build-and-push-main.yaml             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/docker-build-and-push-main-self-hosted.yaml b/.github/workflows/docker-build-and-push-main-self-hosted.yaml
index 6adcb1b8c4b..8cec91eb1bd 100644
--- a/.github/workflows/docker-build-and-push-main-self-hosted.yaml
+++ b/.github/workflows/docker-build-and-push-main-self-hosted.yaml
@@ -84,7 +84,7 @@ jobs:
             *.args.BASE_IMAGE=${{ needs.load-env.outputs[format('{0}', matrix.base_image_env)] }}
             *.args.SETUP_ARGS=${{ matrix.setup-args }}
             *.args.LIB_DIR=${{ matrix.lib_dir }}
-            *.args.ARCH=$(echo "$platform" | cut -d'/' -f2)
+            *.args.ARCH: ${{ env.platform.split('/')[1] }}
           tag-suffix: ${{ matrix.additional-tag-suffix }}
           tag-arch: -arm64
           tag-prefix: ${{ needs.load-env.outputs.rosdistro }}
diff --git a/.github/workflows/docker-build-and-push-main.yaml b/.github/workflows/docker-build-and-push-main.yaml
index 1cb88f72c70..3d626e1ed70 100644
--- a/.github/workflows/docker-build-and-push-main.yaml
+++ b/.github/workflows/docker-build-and-push-main.yaml
@@ -79,7 +79,7 @@ jobs:
             *.args.BASE_IMAGE=${{ needs.load-env.outputs[format('{0}', matrix.base_image_env)] }}
             *.args.SETUP_ARGS=${{ matrix.setup-args }}
             *.args.LIB_DIR=${{ matrix.lib_dir }}
-            *.args.ARCH=$(echo "$platform" | cut -d'/' -f2)
+            *.args.ARCH: ${{ env.platform.split('/')[1] }}
           tag-suffix: ${{ matrix.additional-tag-suffix }}
           tag-arch: -amd64
           tag-prefix: ${{ needs.load-env.outputs.rosdistro }}