ci: fix wiredeps branch ref

This commit is contained in:
Maciej Barelkowski 2021-05-28 15:33:32 +02:00 committed by fake-join[bot]
parent 7f1c0be591
commit 8743585f79
1 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,8 @@ if [[ $GITHUB_REF =~ ^refs/heads/master$ ]] || [[ $GITHUB_REF =~ ^refs/tags/ ]];
exit 0;
fi
FEATURE_BRANCH=$(echo "$GITHUB_REF" | cut -d"/" -f3)
# GITHUB_HEAD_REF is set for pull request
FEATURE_BRANCH=$([ $GITHUB_HEAD_REF != "" ] && echo $GITHUB_HEAD_REF || echo "$GITHUB_REF" | cut -d"/" -f3)
echo "Attempting to install diagram-js@$FEATURE_BRANCH";