From ee05ca54f61ebee102838377f47ca379f8a928c3 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Sat, 17 Oct 2020 05:01:32 +0530 Subject: [PATCH] Fix matchers setup when action is called twice --- src/scripts/darwin.sh | 2 +- src/scripts/linux.sh | 2 +- src/scripts/win32.ps1 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scripts/darwin.sh b/src/scripts/darwin.sh index ca8f0fba..469d8062 100644 --- a/src/scripts/darwin.sh +++ b/src/scripts/darwin.sh @@ -225,5 +225,5 @@ scan_dir=$(php --ini | grep additional | sed -e "s|.*: s*||") sudo mkdir -p "$ext_dir" semver=$(php -v | head -n 1 | cut -f 2 -d ' ') configure_pecl -sudo mv "$dist"/../src/configs/*.json "$RUNNER_TOOL_CACHE/" +sudo cp "$dist"/../src/configs/*.json "$RUNNER_TOOL_CACHE/" add_log "$tick" "PHP" "$status PHP $semver" diff --git a/src/scripts/linux.sh b/src/scripts/linux.sh index ad2ba02b..1509ea0d 100644 --- a/src/scripts/linux.sh +++ b/src/scripts/linux.sh @@ -299,5 +299,5 @@ pecl_file="$scan_dir"/99-pecl.ini echo '' | sudo tee "$pecl_file" >/dev/null 2>&1 sudo rm -rf /usr/local/bin/phpunit >/dev/null 2>&1 sudo chmod 777 "$ini_file" "$pecl_file" "$tool_path_dir" -sudo mv "$dist"/../src/configs/*.json "$RUNNER_TOOL_CACHE/" +sudo cp "$dist"/../src/configs/*.json "$RUNNER_TOOL_CACHE/" add_log "$tick" "PHP" "$status PHP $semver" diff --git a/src/scripts/win32.ps1 b/src/scripts/win32.ps1 index 63c8e366..ede10973 100644 --- a/src/scripts/win32.ps1 +++ b/src/scripts/win32.ps1 @@ -284,5 +284,5 @@ Set-PhpIniKey -Key 'date.timezone' -Value 'UTC' -Path $php_dir Set-PhpIniKey -Key 'memory_limit' -Value '-1' -Path $php_dir Enable-PhpExtension -Extension openssl, curl, opcache, mbstring -Path $php_dir Update-PhpCAInfo -Path $php_dir -Source CurrentUser -Move-Item -path $dist\..\src\configs\*.json -Destination $env:RUNNER_TOOL_CACHE +Copy-Item -Path $dist\..\src\configs\*.json -Destination $env:RUNNER_TOOL_CACHE Add-Log $tick "PHP" "$status PHP $($installed.FullVersion)"