ci: add log when updating version [skip ci]
This commit is contained in:
parent
aac82d75f4
commit
d3db3c1f52
1 changed files with 6 additions and 0 deletions
|
@ -169,12 +169,18 @@ git add .
|
||||||
CHANGES=$( git status --porcelain )
|
CHANGES=$( git status --porcelain )
|
||||||
|
|
||||||
if [[ ! -z "${CHANGES}" ]]; then
|
if [[ ! -z "${CHANGES}" ]]; then
|
||||||
|
echo "${CHANGES}"
|
||||||
|
|
||||||
dateAndMonth=$( date "+%D %T" )
|
dateAndMonth=$( date "+%D %T" )
|
||||||
|
|
||||||
git commit -m "CI update: ${dateAndMonth} (Build ${GITHUB_RUN_NUMBER})"
|
git commit -m "CI update: ${dateAndMonth} (Build ${GITHUB_RUN_NUMBER})"
|
||||||
|
|
||||||
if ! git push origin master --quiet; then
|
if ! git push origin master --quiet; then
|
||||||
git pull origin master
|
git pull origin master
|
||||||
git push origin master --quiet
|
git push origin master --quiet
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
echo "No changes"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
Loading…
Reference in a new issue