diff --git a/dev/update-subrepos.sh b/dev/update-subrepos.sh index e574b3fb..e5bb8c9f 100755 --- a/dev/update-subrepos.sh +++ b/dev/update-subrepos.sh @@ -2,8 +2,13 @@ set -exuo pipefail cd "$(dirname "${BASH_SOURCE[0]}")"/.. -git remote add -f mach-glfw git@github.com:hexops/mach-glfw || true -git fetch mach-glfw +if [[ -z "${GITHUB_ACTIONS}" ]]; then + git remote add -f mach-glfw git@github.com:hexops/mach-glfw || true + git remote add -f mach-gpu-dawn git@github.com:hexops/mach-gpu-dawn || true +else + git remote add -f mach-glfw https://github.com/hexops/mach-glfw || true + git remote add -f mach-gpu-dawn https://github.com/hexops/mach-gpu-dawn || true +fi -git remote add -f mach-gpu-dawn git@github.com:hexops/mach-gpu-dawn || true +git fetch mach-glfw git fetch mach-gpu-dawn