We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd5d3b2 commit 0180326Copy full SHA for 0180326
tools/update-components.sh
@@ -18,7 +18,11 @@ if [ ! -d "$AR_COMPS/arduino" ]; then
18
fi
19
20
if [ -z $AR_BRANCH ]; then
21
- current_branch=`git branch --show-current`
+ if [ -z $GITHUB_REF_NAME ]; then
22
+ current_branch="$GITHUB_REF_NAME"
23
+ else
24
+ current_branch=`git branch --show-current`
25
+ fi
26
if [[ "$current_branch" != "master" && `git_branch_exists "$AR_COMPS/arduino" "$current_branch"` == "1" ]]; then
27
export AR_BRANCH="$current_branch"
28
else
0 commit comments