mirror of
https://github.com/Suwayomi/Tachidesk.git
synced 2026-01-21 03:02:47 +01:00
clean up bulid file name
This commit is contained in:
11
.github/scripts/commit-repo.sh
vendored
11
.github/scripts/commit-repo.sh
vendored
@@ -4,17 +4,6 @@ cp ../master/repo/server-r* .
|
||||
new_build=$(ls | tail -1)
|
||||
echo "New build file name: $new_build"
|
||||
|
||||
# every build generates different jar even if same code, so comment this out.
|
||||
#diff $new_build server-latest.jar > /dev/null
|
||||
#if [ $? -eq 1 ]; then
|
||||
# echo "This is different to latest, replace latest."
|
||||
# cp -f $new_build server-latest.jar
|
||||
#else
|
||||
# echo "This is the same as latest, throw it away."
|
||||
# rm $new_build
|
||||
#fi
|
||||
|
||||
|
||||
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git config --global user.name "github-actions[bot]"
|
||||
git status
|
||||
|
||||
12
.github/scripts/create-repo.sh
vendored
12
.github/scripts/create-repo.sh
vendored
@@ -3,8 +3,12 @@ set -e
|
||||
|
||||
mkdir -p repo/
|
||||
|
||||
revision=$(git rev-list master --count)
|
||||
# add zero padding
|
||||
revision=$(printf %04d $revision)
|
||||
# Get last commit message
|
||||
last_commit_log=$(git log -1 --pretty=format:"%s")
|
||||
echo "last commit log: $last_commit_log"
|
||||
|
||||
cp server/build/server-1.0-all.jar "repo/server-r$revision.jar"
|
||||
filter_count=$(echo "$last_commit_log" | grep -c "[RELEASE CI]" )
|
||||
|
||||
if [ "$filter_count" -gt 0 ]; then
|
||||
cp server/build/Tachidesk-*.jar repo/
|
||||
fi
|
||||
Reference in New Issue
Block a user