Skip to content

Instantly share code, notes, and snippets.

@nucklehead
Created December 8, 2018 18:04
Show Gist options
  • Save nucklehead/bf016ad9c833c664149160d795cc7e7f to your computer and use it in GitHub Desktop.
Save nucklehead/bf016ad9c833c664149160d795cc7e7f to your computer and use it in GitHub Desktop.
#!/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