From 2d8a5476921a8681c9d678578da917a369d4621f Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Sat, 15 Mar 2025 09:57:59 +0100 Subject: [PATCH] build: fix compound bash conditional in patchup (#46047) --- .github/actions/checkout/action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/actions/checkout/action.yml b/.github/actions/checkout/action.yml index d43907f07c19..446f06a7bc7b 100644 --- a/.github/actions/checkout/action.yml +++ b/.github/actions/checkout/action.yml @@ -99,7 +99,7 @@ runs: fi ELECTRON_USE_THREE_WAY_MERGE_FOR_PATCHES=1 e d gclient sync --with_branch_heads --with_tags -vv - if [ "${{ inputs.is-release }}" != "true" && -n "${{ env.PATCH_UP_APP_CREDS }}" ]; then + if [[ "${{ inputs.is-release }}" != "true" && -n "${{ env.PATCH_UP_APP_CREDS }}" ]]; then # Re-export all the patches to check if there were changes. python3 src/electron/script/export_all_patches.py src/electron/patches/config.json cd src/electron @@ -128,6 +128,8 @@ runs: cat ../../patches/update-patches.patch exit 1 fi + else + echo "No changes to patches detected" fi fi