Skip to content

Commit

Permalink
build-tester: use git ref-parse for branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Sep 26, 2022
1 parent d0d4b0d commit 3548081
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions script/build-tester.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ BUILD_FOLDER="$SOURCE_FOLDER/.pio/build"
CONFIG_FILE="$SOURCE_FOLDER/src/config/config.h"
TARGETS_FILE="$SCRIPT_FOLDER/targets.json"

BRANCH=${GITHUB_REF#refs/heads/}
if [ -z "$BRANCH" ]; then
BRANCH="$(git rev-parse --abbrev-ref HEAD)"
fi
BRANCH="$(git rev-parse --abbrev-ref HEAD)"

COMMIT=$GITHUB_SHA
if [ -z "$COMMIT" ]; then
Expand Down

0 comments on commit 3548081

Please sign in to comment.