bin/update-openssh: auto-commit changes

This commit is contained in:
Aaron Bieber 2024-04-20 13:46:28 -06:00
parent 99fa8bba72
commit ef17930fbc
No known key found for this signature in database
2 changed files with 12 additions and 4 deletions

View File

@ -2,6 +2,12 @@
set -e set -e
. ./common.sh
trap error INT TERM
start
ATOM="$(curl -H "Accept: application/atom+xml" -s https://github.com/openssh/openssh-portable/commits/master.atom)" ATOM="$(curl -H "Accept: application/atom+xml" -s https://github.com/openssh/openssh-portable/commits/master.atom)"
CURRENT="$(cat pkgs/openssh/version.json)" CURRENT="$(cat pkgs/openssh/version.json)"
@ -19,6 +25,8 @@ if [ "${CURRENT_COMMIT}" != "${COMMIT}" ]; then
--arg c "${COMMENT}" \ --arg c "${COMMENT}" \
'. |= . + {"version": $v, "comment": $c}' \ '. |= . + {"version": $v, "comment": $c}' \
> pkgs/openssh/version.json > pkgs/openssh/version.json
echo "Updated to '${COMMIT}': '${COMMENT}'"
git add pkgs/openssh/version.json && git commit -m "pkgs/openssh: update to ${COMMIT}"
else else
echo "No updates." echo "No updates."
fi fi

View File

@ -1,8 +1,8 @@
{ {
"owner": "openssh", "owner": "openssh",
"repo": "openssh-portable", "repo": "openssh-portable",
"rev": "43e7c1c07cf6aae7f4394ca8ae91a3efc46514e2", "rev": "88351eca17dcc55189991ba60e50819b6d4193c1",
"hash": "sha256-vyoWiG6pAZgm27pfKu536RMxVhHZEuFxObD/ogtqFdU=", "hash": "sha256-CHpMXOsVBQhIwQYyltVPi+PdCdYOE/yWKMRLKeBHi0w=",
"version": "2024-03-31", "version": "2024-04-05",
"comment": "Port changes from selfhosted to upstream tests." "comment": "Fix missing header for systemd notification"
} }