19 lines
424 B
Bash
Raw Normal View History

2021-01-21 14:15:05 +03:30
#!/bin/bash
2021-01-22 01:55:41 +03:30
cp ../master/repo/* .
2021-01-21 16:01:55 +03:30
new_build=$(ls | tail -1)
echo "New build file name: $new_build"
2021-01-21 16:20:22 +03:30
2021-01-22 01:55:41 +03:30
cp -f $new_build Tachidesk-latest.jar
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
2021-01-21 14:15:05 +03:30
git status
if [ -n "$(git status --porcelain)" ]; then
git add .
2021-01-21 16:27:27 +03:30
git commit -m "Update repo"
2021-01-21 14:15:05 +03:30
git push
else
echo "No changes to commit"
fi