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