mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 20:01:06 +07:00
Sync brew core tap for all runners
This commit is contained in:
parent
a870b0a9be
commit
4f6ab99328
@ -154,18 +154,7 @@ update_dependencies_helper() {
|
|||||||
update_dependencies() {
|
update_dependencies() {
|
||||||
patch_brew
|
patch_brew
|
||||||
if ! [ -e /tmp/update_dependencies ]; then
|
if ! [ -e /tmp/update_dependencies ]; then
|
||||||
if [ "${runner:?}" != "self-hosted" ] && [ "${ImageOS:-}" != "" ] && [ "${ImageVersion:-}" != "" ]; then
|
git -C "$core_repo" fetch origin master && git -C "$core_repo" reset --hard origin/master
|
||||||
deps_file="$tap_dir/$php_tap/.github/deps/${ImageOS:?}_${ImageVersion:?}"
|
|
||||||
if [ -e "$deps_file" ]; then
|
|
||||||
while read -r dependency; do
|
|
||||||
update_dependencies_helper "$dependency" &
|
|
||||||
to_wait+=($!)
|
|
||||||
done <"$deps_file"
|
|
||||||
fi
|
|
||||||
wait "${to_wait[@]}"
|
|
||||||
else
|
|
||||||
git -C "$core_repo" fetch origin master && git -C "$core_repo" reset --hard origin/master
|
|
||||||
fi
|
|
||||||
echo '' | sudo tee /tmp/update_dependencies >/dev/null 2>&1
|
echo '' | sudo tee /tmp/update_dependencies >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user