From bd8b2b49dcb8e7933d6e24ac4d62a3d1ef51a3de Mon Sep 17 00:00:00 2001 From: SimeonC <1085899+SimeonC@users.noreply.github.com> Date: Fri, 22 Nov 2024 12:24:06 +0900 Subject: [PATCH] ci: fix auto-release --- .github/workflows/release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f0bd0126..e9505153 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,10 +14,12 @@ jobs: uses: actions/checkout@v2 - name: Prepare repository - run: git fetch --unshallow --prune --tags + run: | + git remote set-url origin "https://$GITHUB_ACTOR:${{ secrets.RELEASE_BOT_TOKEN }}@github.com/$GITHUB_REPOSITORY.git" + git fetch --unshallow --prune --tags - name: Unset header - # checkout@v2 adds a header that makes branch protection report errors ): + # checkout@v2 adds a header that makes branch protection report errors :( run: git config --local --unset http.https://github.com/.extraheader - name: Read .nvmrc