mirror of
https://github.com/yuzono/anime-extensions.git
synced 2026-10-20 10:51:36 +00:00
Delegate repo sync
This commit is contained in:
18
.github/workflows/build_push.yml
vendored
18
.github/workflows/build_push.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user