-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathrelease.sh
More file actions
25 lines (20 loc) · 733 Bytes
/
Copy pathrelease.sh
File metadata and controls
25 lines (20 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env bash
set -v # print commands before execution, but don't expand env vars in output
set -o errexit # always exit on error
set -o pipefail # honor exit codes when piping
set -o nounset # fail on unset variables
git clone "https://AnimeBack-Bot:$GH_TOKEN@github.com/TaiStudio/Lyna" lyna
cd lyna
npm install
npm run setup
# bail if nothing changed
if [ "$(git status --porcelain)" = "" ]; then
echo "no new content found; goodbye!"
exit
fi
git config user.email animebot.tai.studio@outlook.fr
git config user.name AnimeBack-Bot
git add .
git commit -am "🤖✔️ setup" --author "AnimeBack-Bot <animebot.tai.studio@outlook.fr>"
git pull --rebase
git push origin main