ci(actions): fix push denied (#3392)
Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
parent
a05dce8125
commit
f264ba043d
1 changed files with 2 additions and 3 deletions
5
.github/workflows/update-tag.yaml
vendored
5
.github/workflows/update-tag.yaml
vendored
|
|
@ -32,12 +32,11 @@ jobs:
|
||||||
|
|
||||||
- name: Set Remote with GITHUB_TOKEN
|
- name: Set Remote with GITHUB_TOKEN
|
||||||
run: |
|
run: |
|
||||||
git config --unset http.https://github.com/.extraheader
|
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 }}.git
|
git remote set-url origin https://x-access-token:${{ secrets.ACTIONS_COMMMIT_TOKEN }}@github.com/${{ github.repository }}
|
||||||
|
|
||||||
- name: Push main branch to tag
|
- name: Push main branch to tag
|
||||||
run: |
|
run: |
|
||||||
git fetch --tags
|
|
||||||
git checkout main
|
git checkout main
|
||||||
echo "Updating tag ${{ env.LATEST_TAG }} to point to latest commit on main"
|
echo "Updating tag ${{ env.LATEST_TAG }} to point to latest commit on main"
|
||||||
git push origin HEAD:refs/tags/${{ env.LATEST_TAG }} --force
|
git push origin HEAD:refs/tags/${{ env.LATEST_TAG }} --force
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue