build-tester: check if we run in a tag github workflow
@@ -23,7 +23,11 @@ BUILD_FOLDER="$SOURCE_FOLDER/.pio/build"
CONFIG_FILE="$SOURCE_FOLDER/src/config/config.h"
TARGETS_FILE="$SCRIPT_FOLDER/targets.json"
+if [ "$GITHUB_REF_TYPE" == "tag" ]; then
+ BRANCH=""
+else
BRANCH="$(git rev-parse --abbrev-ref HEAD)"
+fi
COMMIT=$GITHUB_SHA
if [ -z "$COMMIT" ]; then
