diff --git a/.github/workflows/update-tag.yaml b/.github/workflows/update-tag.yaml index edbeaa4e4..705fc6c2c 100644 --- a/.github/workflows/update-tag.yaml +++ b/.github/workflows/update-tag.yaml @@ -33,11 +33,10 @@ 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 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