pve-eslint/eslint/tools/commit-readme.sh
Dominik Csapak f2a92ac62f import 8.41.0 source
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2023-05-24 18:51:55 +02:00

19 lines
457 B
Bash

#!/bin/bash
#------------------------------------------------------------------------------
# Commits the data files if any have changed
#------------------------------------------------------------------------------
if [ -z "$(git status --porcelain)" ]; then
echo "Data did not change."
else
echo "Data changed!"
# commit the result
git add README.md
git commit -m "docs: Update README"
# push back to source control
git push origin HEAD
fi