13 lines
326 B
Bash
Raw Normal View History

2021-01-21 14:15:05 +03:30
#!/bin/bash
2021-01-22 01:55:41 +03:30
2021-01-22 01:37:24 +03:30
# Get last commit message
last_commit_log=$(git log -1 --pretty=format:"%s")
echo "last commit log: $last_commit_log"
2021-01-21 15:34:21 +03:30
2021-01-22 11:50:33 +03:30
filter_count=$(echo "$last_commit_log" | grep -c '\[RELEASE CI\]' )
echo "count is: $filter_count"
2021-01-22 01:37:24 +03:30
if [ "$filter_count" -gt 0 ]; then
2021-01-22 11:50:33 +03:30
mkdir -p repo/
2021-01-22 01:37:24 +03:30
cp server/build/Tachidesk-*.jar repo/
fi