Skip to content

Commit 87a113c

Browse files
wenju-heCopilot
andauthored
Update .github/workflows/on-push-verification-in-tree.yml
Co-authored-by: Copilot <[email protected]>
1 parent 1715aa6 commit 87a113c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
BRANCH="${{ github.base_ref }}" # on: pull_request, otherwise null
4343
BRANCH=${BRANCH:-${{ github.ref_name }}} # on: push
4444
# Extract the padded LLVM version (e.g., 190 for LLVM 19)
45-
LLVM_VERSION_PADDED=$(echo $BRANCH | grep -oP 'ocl-open-\K\d+')
45+
LLVM_VERSION_PADDED=$(echo "$BRANCH" | sed -n 's/^ocl-open-\([0-9]\+\)$/\1/p')
4646
if [ -z "$LLVM_VERSION_PADDED" ]; then
4747
echo "[OPENCL-CLANG] Error: Could not parse LLVM version from branch name '$BRANCH'"
4848
exit 1

0 commit comments

Comments
 (0)