tachiyomi-extensions-inspector/.github/scripts/create-repo.sh

14 lines
393 B
Bash
Raw Normal View History

2021-01-21 11:45:05 +01:00
#!/bin/bash
2021-01-21 23:25:41 +01:00
2021-01-21 23:07:24 +01:00
# Get last commit message
last_commit_log=$(git log -1 --pretty=format:"%s")
echo "last commit log: $last_commit_log"
2021-01-21 13:04:21 +01:00
2021-02-04 02:18:15 +01:00
filter_count=$(echo "$last_commit_log" | grep -e '\[RELEASE CI\]' -e '\[CI RELEASE\]' | wc -c)
2021-01-22 09:20:33 +01:00
echo "count is: $filter_count"
2021-01-21 23:07:24 +01:00
if [ "$filter_count" -gt 0 ]; then
2021-01-22 09:20:33 +01:00
mkdir -p repo/
2021-01-21 23:07:24 +01:00
cp server/build/Tachidesk-*.jar repo/
2021-02-04 21:17:16 +01:00
cp server/build/Tachidesk-*.zip repo/
2021-01-21 23:07:24 +01:00
fi