From 6e51ed643c07ee66247280fd6c479073cf133efe Mon Sep 17 00:00:00 2001 From: jtalborough Date: Mon, 3 Mar 2025 18:20:33 -0500 Subject: [PATCH] fix: adjust installation steps for prerequisites based on environment detection --- .github/workflows/essentials-3-dev-build.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/essentials-3-dev-build.yml b/.github/workflows/essentials-3-dev-build.yml index a870d2cc..3943d5be 100644 --- a/.github/workflows/essentials-3-dev-build.yml +++ b/.github/workflows/essentials-3-dev-build.yml @@ -30,11 +30,17 @@ jobs: echo "is_local=false" >> $GITHUB_OUTPUT fi - # Install all prerequisites - name: Install prerequisites run: | - apt-get update - apt-get install -y curl wget libicu-dev git unzip + if [ "${{ steps.detect_env.outputs.is_local }}" == "true" ]; then + # For Act - no sudo needed + apt-get update + apt-get install -y curl wget libicu-dev git unzip + else + # For GitHub runners - sudo required + sudo apt-get update + sudo apt-get install -y curl wget libicu-dev git unzip + fi - name: Set Version Number id: setVersion