mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-01-18 22:31:45 +07:00
Fix update on multiple installs in same job
This commit is contained in:
parent
7e98140142
commit
cdfde5ebec
@ -63,7 +63,12 @@ read_env() {
|
||||
|
||||
# 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
|
||||
if ! check_ppa ondrej/php; then
|
||||
update=true
|
||||
echo '' | sudo tee /tmp/sp_update >/dev/null 2>&1
|
||||
elif [ -e /tmp/sp_update ]; then
|
||||
update=true
|
||||
fi
|
||||
fi
|
||||
|
||||
export fail_fast
|
||||
|
Loading…
Reference in New Issue
Block a user