Files
enviPy-bayer/static/js/ketcher2/node_modules/pem/bin/aftersuccess.sh
2025-06-23 20:13:54 +02:00

34 lines
700 B
Bash
Executable File

#!/bin/bash
set -e
VAR_PUSH=0
for i in "$@" ; do
if [[ $i == "-push" ]] ; then
VAR_PUSH=1
break
fi
done
git config --global user.name "Dexus via TravisCI"
git config --global user.email "github@josef-froehle.de"
git config credential.helper "store --file=.git/credentials"
echo "https://$GH_TOKEN:@github.com" > .git/credentials
git checkout "$TRAVIS_BRANCH" || exit 0
if [[ "${VAR_PUSH}" == "1" ]]
then
OUTPUT=$(node "$(pwd)/bin/aftersuccess.js")
STATUS=$?
echo "${OUTPUT}"
fi
if [[ "${STATUS}" == "0" && "${VAR_PUSH}" == "1" ]]
then
sleep 10
npm run changelog
git add HISTORY.md
git commit -m "Update HISTORY.md via TravisCI" -m "[ci skip]"
git push
fi