Created
December 8, 2018 18:04
-
-
Save nucklehead/bf016ad9c833c664149160d795cc7e7f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
OTE=$(git log -1 --pretty=format:'%an') | |
KOURYE=$(git log -1 --pretty=format:'%ae') | |
DOSYE_RAPO=${TRAVIS_BUILD_ID}.${TRAVIS_COMMIT}.${TRAVIS_BUILD_NUMBER}.${OTE} | |
rm -rf ${2} | |
git clone https://${GITHUB_TOKEN:+${GITHUB_TOKEN}@}${1}/${2} | |
cd ${2} | |
cp -r ../site/allure-maven-plugin ./${DOSYE_RAPO} | |
git add ./${DOSYE_RAPO} | |
git config --global user.email "${KOURYE}" | |
git config --global user.name "${OTE}" | |
git commit -m "Sa se rapo pou patecho-seve komit: ${TRAVIS_BUILD_ID}" | |
git push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment