You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
187 B
Bash

#! /bin/bash
STATUS=$(git status --porcelain)
STATUS_LEN=${#STATUS}
if [ $STATUS_LEN = 0 ]; then
exit 0
else
git add .
git commit --verbose # -qm "CI/CD Commit: $(date -Iseconds)"
fi