修复远程终端识别本地操作系统问题并完善工作流配置 #7
@@ -24,6 +24,7 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
ref: ${{ github.head_ref }}
|
||||||
|
|
||||||
- name: 配置 Git
|
- name: 配置 Git
|
||||||
run: |
|
run: |
|
||||||
@@ -69,7 +70,7 @@ jobs:
|
|||||||
git config user.name "github-actions"
|
git config user.name "github-actions"
|
||||||
git config user.email "github-actions@github.com"
|
git config user.email "github-actions@github.com"
|
||||||
git add package.json
|
git add package.json
|
||||||
git commit -m "chore: bump version to $NEW_VERSION"
|
git commit -m "chore: bump version to $NEW_VERSION [skip ci]"
|
||||||
|
|
||||||
# 推送到当前分支
|
# 推送到当前分支
|
||||||
BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)
|
BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)
|
||||||
|
|||||||
Reference in New Issue
Block a user