From a021ae221edbb9f98c466113c559fc92c3ee8111 Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Thu, 18 Jun 2026 23:58:56 +0800 Subject: [PATCH] fix(release): use mpgrm env credentials --- .github/workflows/release.yml | 6 ++++-- .github/workflows/sync-cnb-release-assets.yml | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ce237695de..ac87987256 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -328,7 +328,9 @@ jobs: env: TAG_NAME: ${{ github.ref_name }} GITHUB_REPOSITORY: ${{ github.repository }} + GITHUB_USERNAME: ${{ github.repository_owner }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CNB_USERNAME: cnb CNB_TOKEN: ${{ secrets.CNB_TOKEN }} run: | set -euo pipefail @@ -338,8 +340,8 @@ jobs: chmod +x mpgrm ./mpgrm releases sync \ - --repo "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" \ - --target-repo "https://cnb:${CNB_TOKEN}@cnb.cool/${CNB_REPOSITORY}.git" \ + --repo "https://github.com/${GITHUB_REPOSITORY}.git" \ + --target-repo "https://cnb.cool/${CNB_REPOSITORY}.git" \ --tags "${TAG_NAME}" docker: diff --git a/.github/workflows/sync-cnb-release-assets.yml b/.github/workflows/sync-cnb-release-assets.yml index 7aa9d7dea6..ddea29bc8b 100644 --- a/.github/workflows/sync-cnb-release-assets.yml +++ b/.github/workflows/sync-cnb-release-assets.yml @@ -23,7 +23,9 @@ jobs: env: TAG_NAME: ${{ inputs.tag }} GITHUB_REPOSITORY: ${{ github.repository }} + GITHUB_USERNAME: ${{ github.repository_owner }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CNB_USERNAME: cnb CNB_TOKEN: ${{ secrets.CNB_TOKEN }} run: | set -euo pipefail @@ -33,6 +35,6 @@ jobs: chmod +x mpgrm ./mpgrm releases sync \ - --repo "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" \ - --target-repo "https://cnb:${CNB_TOKEN}@cnb.cool/${CNB_REPOSITORY}.git" \ + --repo "https://github.com/${GITHUB_REPOSITORY}.git" \ + --target-repo "https://cnb.cool/${CNB_REPOSITORY}.git" \ --tags "${TAG_NAME}"