formation-convertkit-backup/merge_gen.sh
François Pelletier 7a1769fc2f Première version
2022-07-04 22:13:11 -04:00

14 lines
282 B
Bash

#!/bin/bash
set -e
mkdir -p json
stats="$(git diff --shortstat | xargs)"
if [ -z "${stats}" ]; then stats=none; fi
printf "Updated: %s\n\nUpdates: %s" "$(date)" "${stats}" > README.md
git add json README.md && git commit -m "Updates: ${stats}"
git push origin HEAD:main
exit 0