From 7f2603a109240e6629fd721e8d4d94610024da7c 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..1252878bacf 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" + sudo apt update && sudo 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: |