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-02-04 04:48:15 +03:30
|
|
|
filter_count=$(echo "$last_commit_log" | grep -e '\[RELEASE CI\]' -e '\[CI RELEASE\]' | wc -c)
|
2021-01-22 11:50:33 +03:30
|
|
|
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/
|
2021-02-04 23:47:16 +03:30
|
|
|
cp server/build/Tachidesk-*.zip repo/
|
2021-01-22 01:37:24 +03:30
|
|
|
fi
|