From 374dceeced82f03530a72c49584c0e1fb18c1608 Mon Sep 17 00:00:00 2001 From: Walid Kayhal <3347810+waliid@users.noreply.github.com> Date: Sat, 9 Nov 2024 13:43:42 +0100 Subject: [PATCH] Use regex for certificate name --- .github/workflows/scripts/setup-project.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/scripts/setup-project.sh b/.github/workflows/scripts/setup-project.sh index ae49546c..73eede4d 100755 --- a/.github/workflows/scripts/setup-project.sh +++ b/.github/workflows/scripts/setup-project.sh @@ -13,14 +13,15 @@ fi source "$(dirname $(realpath $0))/constants.sh" source "$(dirname $(realpath $0))/unlock-keychain.sh" -certificate_path="$REPOSITORY_PATH/Configuration/6YXTQTG8JJ_development.p12" -certificate_password="6YXTQTG8JJ" -configuration_repo="github.com/SRGSSR/pillarbox-apple-configuration.git" configuration_dir_path="$REPOSITORY_PATH/Configuration" +configuration_repo="github.com/SRGSSR/pillarbox-apple-configuration.git" configuration_script="$REPOSITORY_PATH/Scripts/checkout-configuration.sh" configuration_branch="certificate" configuration_commit="HEAD" +certificate_path=$(realpath "$configuration_dir_path/*.p12") +certificate_password="6YXTQTG8JJ" + function import_certificate { security import $certificate_path -k $keychain_path -P $certificate_password -T /usr/bin/security -T /usr/bin/codesign }