fix: update GitHub Actions workflow to simplify tag pushing process

This commit is contained in:
2026-03-05 05:25:07 +07:00
parent dfe888b409
commit 600d27cfea

View File

@@ -8,15 +8,16 @@ on:
jobs: jobs:
update-latest: update-latest:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
contents: write
steps: steps:
- 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 https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} latest --force git push origin latest --force