awesome-docker/push.sh

23 lines
543 B
Markdown
Raw Normal View History

2018-07-19 09:59:07 +00:00
#!/usr/bin/env bash
# Exit immediately if a command returns a non-zero status.
set -e
# Set git credentials
git config --global user.email "info@veggiemonk.ovh"
git config --global user.name "veggiemonk-bot"
# let git know where to apply the changes
git checkout master
echo 'Adding data files'
git add data/*
echo 'Commiting files'
git commit -m 'Automated update repository metadata [skip ci]'
2018-07-19 09:59:07 +00:00
echo 'Pushing changes'
git push https://$GITHUB_USER:$GITHUB_TOKEN@github.com/veggiemonk/awesome-docker master >/dev/null 2>&1
2018-07-20 07:43:55 +00:00
echo 'Done.'