Automated script to update metadata

This commit is contained in:
Julien Bisconti
2018-07-19 11:59:07 +02:00
parent 0ad04a0785
commit ee0aa9c308
10 changed files with 10696 additions and 43 deletions

22
push.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/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'
echo 'Pushing changes'
git push https://$GITHUB_USER:$GITHUB_TOKEN@github.com/veggiemonk/awesome-docker master >/dev/null 2>&1
echo 'Done.'