Skip to content

Commit ae7523f

Browse files
committed
Apply suggestion from @Copilot
1 parent 391a3f7 commit ae7523f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/on-push-verification-in-tree.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ jobs:
4242
BRANCH="${{ github.base_ref }}" # on: pull_request, otherwise null
4343
BRANCH=${BRANCH:-${{ github.ref_name }}} # on: push
4444
LLVM_VERSION_LONG=$(echo $BRANCH | grep -oP 'ocl-open-\K\d+') # Eg. 190 for LLVM 19
45+
if [ -z "$LLVM_VERSION_LONG" ]; then
46+
echo "[OPENCL-CLANG] Error: Could not parse LLVM version from branch name '$BRANCH'"
47+
exit 1
48+
fi
4549
LLVM_VERSION_SHORT=${LLVM_VERSION_LONG::-1} # Eg. 19 for LLVM 19
4650
echo "llvm_version=$LLVM_VERSION_SHORT" >> $GITHUB_OUTPUT
4751

0 commit comments

Comments
 (0)