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
173 B
Bash

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