Skip to content

Instantly share code, notes, and snippets.

@TomGranot
Last active March 5, 2019 17:03
Show Gist options
  • Save TomGranot/45123a191d1ecac5bb7239d8750f4f15 to your computer and use it in GitHub Desktop.
Save TomGranot/45123a191d1ecac5bb7239d8750f4f15 to your computer and use it in GitHub Desktop.
Config.yml part 3
- run:
name: Bump Version & Push To Repo
command: |
cd scripts
./version-bumper.sh
printf "\n"
echo "-- Pushing To Github --"
printf "\n"
git config credential.helper 'cache --timeout=120'
git config user.email ${GITHUB_EMAIL}
git config user.name ${GITHUB_USERNAME}
git add ../app/build.gradle
git commit -m "Bumping Project Version [ci skip]"
cd ..
git push https://${GITHUB_API_TOKEN}@github.com/${GITHUB_USERNAME}/${CIRCLE_PROJECT_REPONAME}.git ${CIRCLE_BRANCH}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment