Skip to content

Commit 1cc021a

Browse files
committed
【修复】更新推送标签的 GitHub Actions 工作流程
- 替换 action-push-tag 动作为手动配置 git - 添加 git config 设置用户名和邮箱 - 使用 git 命令手动创建和推送标签
1 parent 439646f commit 1cc021a

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/check-version-and-push-tag.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ jobs:
3030
3131
- name: Push tag
3232
if: steps.version-check.outputs.version != '0'
33-
uses: actions-ecosystem/action-push-tag@v1
34-
with:
35-
tag: "v${{ steps.version-check.outputs.version }}"
33+
run: |
34+
tag="v${{ steps.version-check.outputs.version }}"
35+
git config user.name "${GITHUB_ACTOR}"
36+
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
37+
git tag -a "${tag}" -m "Release ${tag}"
38+
git push origin "${tag}"

0 commit comments

Comments
 (0)