Uses git add.
parent
b4a1d9904b
commit
a998c72800
|
@ -30,17 +30,17 @@ main() {
|
||||||
wget --header='Accept: application/octet-stream' -O"$name" "$url"
|
wget --header='Accept: application/octet-stream' -O"$name" "$url"
|
||||||
reprepro -b ../debian includedeb unstable "$name"
|
reprepro -b ../debian includedeb unstable "$name"
|
||||||
done
|
done
|
||||||
|
)
|
||||||
|
|
||||||
if has_changes ../debian/{db,dists,pool}; then
|
if has_changes debian/{db,dists,pool}; then
|
||||||
|
git add debian/{db,dists,pool}
|
||||||
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")')." \
|
commit -m "Included release $release_repo@$(cat "$tmpd/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
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|
Loading…
Reference in New Issue