From f264ba043df548e818beff61926e0aa0ec500af7 Mon Sep 17 00:00:00 2001 From: Rajesh Rajendran Date: Mon, 12 May 2025 16:55:23 +0200 Subject: [PATCH] ci(actions): fix push denied (#3392) Signed-off-by: rjshrjndrn --- .github/workflows/update-tag.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update-tag.yaml b/.github/workflows/update-tag.yaml index edbeaa4e4..4ca2348de 100644 --- a/.github/workflows/update-tag.yaml +++ b/.github/workflows/update-tag.yaml @@ -32,12 +32,11 @@ jobs: - name: Set Remote with GITHUB_TOKEN run: | - git config --unset http.https://github.com/.extraheader - git remote set-url origin https://x-access-token:${{ secrets.ACTIONS_COMMMIT_TOKEN }}@github.com/${{ github.repository }}.git + git config --global --unset http.https://github.com/.extraheader + git remote set-url origin https://x-access-token:${{ secrets.ACTIONS_COMMMIT_TOKEN }}@github.com/${{ github.repository }} - name: Push main branch to tag run: | - git fetch --tags git checkout main echo "Updating tag ${{ env.LATEST_TAG }} to point to latest commit on main" git push origin HEAD:refs/tags/${{ env.LATEST_TAG }} --force