diff --git a/.github/workflows/create-tag.yaml b/.github/workflows/create-tag.yaml index 1bda9fe..84b6d84 100644 --- a/.github/workflows/create-tag.yaml +++ b/.github/workflows/create-tag.yaml @@ -13,6 +13,14 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + with: + token: ${{ secrets.BOT_GITHUB_TOKEN }} + user: kubbot # 将 "username" 替换为您想要使用的 GitHub 用户名 + + - name: Set up Git user + run: | + git config user.name "kubbot" # 将 "Your Name" 替换为您想要使用的名字 + git config user.email "3293172751ysy@gmail.com" # 将 "you@example.com" 替换为您想要使用的邮箱地址 - name: Create Tag run: | @@ -31,5 +39,6 @@ jobs: git config user.email "action@github.com" git tag -a $TAG -m "$COMMENT" git push origin $TAG + env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}