dev: dont complain about unbound GITHUB_ACTIONS env var when pushing subrepos

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-04 17:40:57 -07:00
parent c22909eb88
commit bc4f6f36c5

View file

@ -2,7 +2,7 @@
set -exuo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")"/..
if [ -n "$GITHUB_ACTIONS" ]; then
if [ -n "${GITHUB_ACTIONS:-}" ]; then
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
else