Push to the AUR also when the version did not change
A failed AUR push of an earlier run is retried that way. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
db970e9c85
commit
d3409a1695
1 changed files with 8 additions and 7 deletions
|
|
@ -45,13 +45,14 @@ jobs:
|
|||
[ -n "${latest_version}" ] || { echo "Could not determine latest upstream tag"; exit 1; }
|
||||
source PKGBUILD
|
||||
if [ "${pkgver}" == "${latest_version}" ]; then
|
||||
echo "Current Version (${pkgver}) is the latest one, nothing to do"
|
||||
exit 0
|
||||
echo "Current Version (${pkgver}) is the latest one, nothing to update"
|
||||
else
|
||||
echo "New Version available: ${latest_version} (current: ${pkgver})"
|
||||
./update.sh "${latest_version}"
|
||||
git add .
|
||||
git commit -m "Update to ${latest_version}"
|
||||
git push origin HEAD:master
|
||||
fi
|
||||
echo "New Version available: ${latest_version} (current: ${pkgver})"
|
||||
./update.sh "${latest_version}"
|
||||
git add .
|
||||
git commit -m "Update to ${latest_version}"
|
||||
git push origin HEAD:master
|
||||
# also when nothing changed: a failed AUR push of an earlier run is retried, an up to date AUR is a no-op
|
||||
git remote add aur ssh://aur@aur.archlinux.org/aptakube-appimage.git
|
||||
GIT_SSH_COMMAND='ssh -i ~/.ssh/id_rsa_aur' git push --set-upstream aur HEAD:master
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue