mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-09-08 22:04:10 +07:00
Update PHP if ppa:ondrej/php is missing ref: actions/runner-images#6331
This commit is contained in:
@ -56,15 +56,20 @@ read_env() {
|
||||
[[ -z "${ImageOS}" && -z "${ImageVersion}" ]] && _runner=self-hosted || _runner=github
|
||||
runner="${runner:-${RUNNER:-$_runner}}"
|
||||
|
||||
export fail_fast
|
||||
export runner
|
||||
export update
|
||||
export ts
|
||||
|
||||
if [[ "$runner" = "github" && $_runner = "self-hosted" ]]; then
|
||||
fail_fast=true
|
||||
add_log "$cross" "Runner" "Runner set as github in self-hosted environment"
|
||||
fi
|
||||
|
||||
# Set Update to true if the ubuntu github image does not have PHP PPA.
|
||||
if [[ "$runner" = "github" && "${ImageOS}" =~ ubuntu.* ]]; then
|
||||
check_ppa ondrej/php || update=true
|
||||
fi
|
||||
|
||||
export fail_fast
|
||||
export runner
|
||||
export update
|
||||
export ts
|
||||
}
|
||||
|
||||
# Function to download a file using cURL.
|
||||
|
Reference in New Issue
Block a user