File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 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
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
You can’t perform that action at this time.
0 commit comments