From 79e379a2af734e52bac130ba1df8c9eaaba13842 Mon Sep 17 00:00:00 2001 From: "lixuefei.1313" Date: Tue, 24 Feb 2026 11:44:07 +0800 Subject: [PATCH] feat: optimiz workflows for release --- .github/workflows/post-release.yml | 4 ++-- .github/workflows/release.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/post-release.yml b/.github/workflows/post-release.yml index 3be564acba..044ebd7deb 100644 --- a/.github/workflows/post-release.yml +++ b/.github/workflows/post-release.yml @@ -45,7 +45,7 @@ jobs: if: steps.meta.outputs.skip != 'true' env: VERSION: ${{ steps.meta.outputs.version }} - GH_TOKEN: ${{ github.token }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | set -euo pipefail TAG="v${VERSION}" @@ -125,7 +125,7 @@ jobs: if: steps.meta.outputs.skip != 'true' && steps.exist.outputs.skip != 'true' && steps.body.outputs.has_body == 'true' env: VERSION: ${{ steps.meta.outputs.version }} - GH_TOKEN: ${{ github.token }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | set -euo pipefail TAG="v${VERSION}" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1f44b49e69..f60a2a9fed 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -360,7 +360,7 @@ jobs: - name: Create Pull Request to main (release) if: startsWith(github.ref_name, 'release/') env: - GH_TOKEN: ${{ github.token }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | set -euo pipefail BRANCH="${GITHUB_REF_NAME}"