From a8163ea8e5ed08f2c9032c8223123723a962e037 Mon Sep 17 00:00:00 2001 From: Lup Yuen Lee Date: Mon, 25 Nov 2024 17:02:50 +0800 Subject: [PATCH] Remove "cache: false" --- enable-macos-windows.sh | 8 ++++++++ enable-macos-windows2.sh | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/enable-macos-windows.sh b/enable-macos-windows.sh index d788335..beef90b 100755 --- a/enable-macos-windows.sh +++ b/enable-macos-windows.sh @@ -58,6 +58,14 @@ cat $file \ >$tmp_file mv $tmp_file $file +## Remove "cache: false" +search="cache: false" +replace="" +cat $file \ + | sed "s/$search/$replace/g" \ + >$tmp_file +mv $tmp_file $file + ## Enable the macOS Builds ## Change: if [[ "${{ inputs.os }}" == "macOS" ]]; then ## To: if [[ "${{ inputs.os }}" == "NOTUSED" ]]; then diff --git a/enable-macos-windows2.sh b/enable-macos-windows2.sh index 2e97ba8..5e601e3 100755 --- a/enable-macos-windows2.sh +++ b/enable-macos-windows2.sh @@ -59,6 +59,14 @@ cat $file \ >$tmp_file mv $tmp_file $file +## Remove "cache: false" +search="cache: false" +replace="" +cat $file \ + | sed "s/$search/$replace/g" \ + >$tmp_file +mv $tmp_file $file + ## Enable the macOS Builds ## Change: if [[ "${{ inputs.os }}" == "macOS" ]]; then ## To: if [[ "${{ inputs.os }}" == "NOTUSED" ]]; then