2024-04-06 13:29:01 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
docker exec -i taiko-mongo mongoexport --db taiko --collection users --out /dev/stdout | sort -n > users.json
|
|
|
|
docker exec -i taiko-mongo mongoexport --db taiko --collection songs --out /dev/stdout | sort -n > songs.json
|
|
|
|
docker exec -i taiko-mongo mongoexport --db taiko --collection scores --out /dev/stdout | sort -n > scores.json
|
2024-04-06 13:30:25 +02:00
|
|
|
|
2024-04-06 13:47:43 +02:00
|
|
|
git add *.json
|
2024-04-06 14:02:09 +02:00
|
|
|
changed=$(git diff --name-only --cached | paste -s -d ",")
|
|
|
|
git commit --author="BOT <>" -m "$changed が更新されました"
|
2024-04-06 13:36:41 +02:00
|
|
|
git push origin main
|