set -euo pipefail

# Do not echo!
set +x

export GH_TOKEN="${GITHUB_AGENT_TOKEN:-TOKEN_IS_NOT_SET}"
if [[ "${GH_TOKEN}" == 'TOKEN_IS_NOT_SET' ]]; then
  echo "[debug] GH_TOKEN is unset ('TOKEN_IS_NOT_SET')." >&2
elif [[ -z "${GH_TOKEN}" ]]; then
  echo "[debug] GH_TOKEN is set but empty." >&2
else
  echo "[debug] GH_TOKEN is not empty." >&2
fi
