mirror of
https://github.com/keiyoushi/extensions-source.git
synced 2024-11-22 10:22:47 +01:00
17 lines
484 B
Bash
Executable File
17 lines
484 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
rsync -a --delete --exclude .git --exclude .gitignore --exclude README.md ../main/repo/ .
|
|
git config --global user.email "156378334+keiyoushi-bot@users.noreply.github.com"
|
|
git config --global user.name "keiyoushi-bot"
|
|
git status
|
|
if [ -n "$(git status --porcelain)" ]; then
|
|
git add .
|
|
git commit -m "Update extensions repo"
|
|
git push
|
|
|
|
curl https://purge.jsdelivr.net/gh/keiyoushi/extensions@repo/index.min.json
|
|
else
|
|
echo "No changes to commit"
|
|
fi
|