1
0
Fork 0
mirror of https://codeberg.org/xtex/xtex-mp-pack.git synced 2024-09-19 11:52:32 +00:00
xtex-mp-pack-staging/scripts/sync-readme.sh
2023-06-22 12:52:31 +08:00

13 lines
458 B
Bash
Executable file

#! /usr/bin/bash
# shellcheck source=/dev/null
source .env
{
printf "<details><summary>Credits</summary>\n\n"
cat CREDITS.md
echo "</details>"
printf "\n"
cat README.md
} | jo body=@/dev/stdin | curl -A "xtex-mp-pack scripts (HsMwyVxf)" \
-H "Authorization: $MODRINTH_TOKEN" \
-H "Content-Type: application/json" \
-X PATCH -d "$(cat /dev/stdin)" https://api.modrinth.com/v2/project/HsMwyVxf && echo "Modrinth README updated"