Delegate repo sync

This commit is contained in:
Cuong-Tran
2026-02-06 10:41:41 +07:00
parent af2a979c54
commit 0cfb45cb66

View File

@@ -200,21 +200,3 @@ jobs:
cwd: "./repo"
# committer_name: github-actions[bot]
# committer_email: github-actions[bot]@users.noreply.github.com
- name: Sync repo
env:
COMMIT_MESSAGE: ${{ needs.prepare.outputs.latestCommitMessage }}
run: |
cd repo
git config user.name "Yūzōnō"
git config user.email "yuzono@users.noreply.github.com"
git remote set-url origin https://github.com/yuzono/anime-repo.git
git fetch origin
git reset origin/repo
git add -A
git commit --amend -m "$COMMIT_MESSAGE" --no-sign --allow-empty || echo "No changes to commit"
git push origin HEAD:repo --force
- name: Purge cached index on jsDelivr
run: |
curl https://purge.jsdelivr.net/gh/yuzono/anime-repo@repo/index.min.json