dev: correct bash conditional for CI auth
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
ab6e3dbaed
commit
bd220b275c
1 changed files with 4 additions and 4 deletions
|
|
@ -2,12 +2,12 @@
|
||||||
set -exuo pipefail
|
set -exuo pipefail
|
||||||
cd "$(dirname "${BASH_SOURCE[0]}")"/..
|
cd "$(dirname "${BASH_SOURCE[0]}")"/..
|
||||||
|
|
||||||
if [[ -z ${GITHUB_ACTIONS+""} ]]; then
|
if [ -n "$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://slimsag:$ACCESS_TOKEN@github.com/hexops/mach-glfw" || true
|
git remote add -f mach-glfw "https://slimsag:$ACCESS_TOKEN@github.com/hexops/mach-glfw" || true
|
||||||
git remote add -f mach-gpu-dawn "https://slimsag:$ACCESS_TOKEN@github.com/hexops/mach-gpu-dawn" || true
|
git remote add -f mach-gpu-dawn "https://slimsag:$ACCESS_TOKEN@github.com/hexops/mach-gpu-dawn" || true
|
||||||
|
else
|
||||||
|
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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git fetch mach-glfw
|
git fetch mach-glfw
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue