mirror of
https://github.com/esauflores/toolbox.git
synced 2026-03-09 21:03:59 +00:00
fix: update GitHub Actions workflow to use token for pushing latest tag
This commit is contained in:
3
.github/workflows/update-latest-tag.yml
vendored
3
.github/workflows/update-latest-tag.yml
vendored
@@ -12,10 +12,11 @@ jobs:
|
|||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Update latest tag
|
- name: Update latest tag
|
||||||
run: |
|
run: |
|
||||||
git config user.name "github-actions[bot]"
|
git config user.name "github-actions[bot]"
|
||||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
git tag -f latest
|
git tag -f latest
|
||||||
git push origin latest --force
|
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} latest --force
|
||||||
|
|||||||
Reference in New Issue
Block a user