Skip to content

Commit 0eaa678

Browse files
author
142vip.cn
committed
fix: 修复gh-pages站点同步异常
1 parent bb6fb43 commit 0eaa678

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/CD.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
- name: Get Commit Info
6969
id: gitInfo
7070
run: |
71-
echo "commitMessage=$(git log -1 --pretty=%B)" >> $GITHUB_OUTPUT
71+
echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
7272
echo "author=$(git log -1 --pretty=%an)" >> $GITHUB_OUTPUT
7373
echo "email=$(git log -1 --pretty=%ae)" >> $GITHUB_OUTPUT
7474
@@ -78,7 +78,7 @@ jobs:
7878
with:
7979
target_branch: pages/github
8080
build_dir: docs/.vuepress/dist
81-
commit_message: ${{steps.gitInfo.outputs.commitMessage}}
81+
commit_message: chore(sync) v${{steps.gitInfo.outputs.version}}
8282
committer: ${{steps.gitInfo.outputs.author}}<${{steps.gitInfo.outputs.email}}>
8383
author: Mr·Sync
8484
env:
@@ -138,8 +138,8 @@ jobs:
138138
# 提取版本号
139139
- name: Get New Version Number
140140
id: releaseVersion
141-
run: |
142-
echo "::set-output name=version::$(node -p "require('./package.json').version")"
141+
run: |
142+
echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
143143
144144
# 创建发布版本
145145
- name: Create New Release

0 commit comments

Comments
 (0)