Skip to content

Commit

Permalink
Sync brew core tap for all runners
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Mar 1, 2024
1 parent a870b0a commit 4f6ab99
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/scripts/darwin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,18 +154,7 @@ update_dependencies_helper() {
update_dependencies() {
patch_brew
if ! [ -e /tmp/update_dependencies ]; then
if [ "${runner:?}" != "self-hosted" ] && [ "${ImageOS:-}" != "" ] && [ "${ImageVersion:-}" != "" ]; then
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
git -C "$core_repo" fetch origin master && git -C "$core_repo" reset --hard origin/master
echo '' | sudo tee /tmp/update_dependencies >/dev/null 2>&1
fi
}
Expand Down

0 comments on commit 4f6ab99

Please sign in to comment.