From 651d81e05f4bf9cc6746d6618e7f1b787708da9c Mon Sep 17 00:00:00 2001 From: Mike Chang Date: Tue, 30 Jan 2024 14:46:40 -0800 Subject: [PATCH] Fix promotion platform path (#245) Fixes an issue where the file name does not conform to a standard name like `*--o3de--.tar.xz` Tested in my fork Signed-off-by: Mike Chang --- .github/workflows/promote-packages.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/promote-packages.yaml b/.github/workflows/promote-packages.yaml index 6671d99d..ae53b995 100644 --- a/.github/workflows/promote-packages.yaml +++ b/.github/workflows/promote-packages.yaml @@ -111,11 +111,12 @@ jobs: hash=$(echo "$content" | awk '{print $1}') PACKAGE_NAME=$(echo "$file" | cut -d'-' -f1-2) # Extract package name without platform PARTIAL_PACKAGE_NAME=$(echo "$PACKAGE_NAME" | cut -d'-' -f1) # Extract the first part of the package name for matching - PLATFORM=$(echo "$file" | cut -d'-' -f5) + PLATFORM=$(echo "$file" | rev | cut -d'-' -f1 | rev) # Determine x86 or aarch64 cmake file name based on file suffix if [[ $file == *linux-aarch64 ]]; then CMAKE_FILE=BuiltInPackages_linux_aarch64.cmake + PLATFORM=linux elif [[ $file == *linux ]]; then CMAKE_FILE=BuiltInPackages_linux_x86_64.cmake else