From e276648c3f0ecdf193fabc50142997eb9128c97e Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 12 Feb 2022 17:24:48 -0700 Subject: [PATCH] dev: use HTTPS subrepo remotes in CI Signed-off-by: Stephen Gutekanst --- dev/update-subrepos.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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