fix: update GitHub Actions workflow to use token for pushing latest tag

This commit is contained in:
2026-03-05 05:23:40 +07:00
parent 98dac239c6
commit dfe888b409

View File

@@ -12,10 +12,11 @@ jobs:
- uses: actions/checkout@v6
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Update latest tag
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git tag -f latest
git push origin latest --force
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} latest --force