Fixes for commit logic.

pull/1/head
Tommie Gannert 2021-09-11 11:43:32 +02:00
parent 7c1f4740d6
commit b4a1d9904b
1 changed files with 4 additions and 3 deletions

View File

@ -10,7 +10,7 @@ set -e
release_repo=tonarino/innernet release_repo=tonarino/innernet
has_changes() { has_changes() {
git status --porcelain --untracked-files=no | grep -q . git status --porcelain "$@" | grep -q .
} }
main() { main() {
@ -31,11 +31,12 @@ main() {
reprepro -b ../debian includedeb unstable "$name" reprepro -b ../debian includedeb unstable "$name"
done done
if has_changes; then if has_changes ../debian/{db,dists,pool}; then
git \ git \
-c 'user.email=41898282+github-actions[bot]@users.noreply.github.com' \ -c 'user.email=41898282+github-actions[bot]@users.noreply.github.com' \
-c 'user.name=github-actions[bot]' \ -c 'user.name=github-actions[bot]' \
commit -m "Included release $release_repo@$(cat latest.json | jq -r '.name | ltrimstr("v")')." debian/{db,dists,pool} commit -m "Included release $release_repo@$(cat latest.json | jq -r '.name | ltrimstr("v")')." \
../debian/{db,dists,pool}
else else
echo 'No updates to commit.' echo 'No updates to commit.'
fi fi