From e9152e6a02f9a22cd32073c07dd8f13ae2f28bab Mon Sep 17 00:00:00 2001 From: frcroth Date: Mon, 18 Mar 2024 10:46:26 +0100 Subject: [PATCH] Do we have a GH Token? --- .circleci/config.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index cf472ab8b37..98f356497d9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -24,6 +24,17 @@ jobs: echo "export NORMALIZED_BRANCH=master" >> $BASH_ENV echo "export DOCKER_TAG=${CIRCLE_TAG}" >> $BASH_ENV fi + - run: + name: Test GH Token + command: | + if [ -n "$GH_TOKEN" ]; then + echo "GH_TOKEN is set" + apt update && apt install -y gh + gh auth status + else + echo "GH_TOKEN is not set" + exit 1 + fi - run: name: Build webknossos-dev docker image command: |