Skip to content

Commit aeac1f5

Browse files
committed
fix: autofill base again again
1 parent ea9247a commit aeac1f5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@ jobs:
1919
BRANCH=$(echo ${GITHUB_REF} | sed -e 's/refs\/heads\///')
2020
BEFORE='base: '''
2121
if [[ $BRANCH == ver/* ]]; then
22-
AFTER=$(echo $BRANCH | sed 's|^ver/||')
22+
BRANCH_NAME=$(echo $BRANCH | sed 's|origin/||')
23+
AFTER=$(echo $BRANCH_NAME | sed 's|build/ver/||')
2324
AFTER="base: '/${AFTER}/'"
2425
else
2526
AFTER='base: '''
2627
fi
28+
echo $AFTER
2729
sed -i "s/${BEFORE}/${AFTER}/g" "./docs/.vitepress/config.mts"
2830
2931
- name: Setup Node.js

0 commit comments

Comments
 (0)