Gh actions (#662)

* GitHub Actions
This commit is contained in:
Julien Bisconti
2019-01-25 22:26:52 +01:00
committed by GitHub
parent 82d9ebe503
commit cf38d3e8b5
7 changed files with 67 additions and 56 deletions

View File

@@ -4,8 +4,8 @@
set -e
# Set git credentials
git config --global user.email "info@veggiemonk.ovh"
git config --global user.name "veggiemonk-bot"
git config --global user.email "$GIT_EMAIL"
git config --global user.name "$GIT_USERNAME"
# let git know where to apply the changes
git checkout master
@@ -18,9 +18,9 @@ files=$(git diff --cached --numstat | wc -l | tr -d '[:space:]');
[[ $files -eq 0 ]] && echo "nothing to push, exiting..." && exit
echo "Commiting files"
git commit -m "Automated update repository metadata [skip ci]"
git commit -m "Automated update repository metadata [skip-ci]"
echo "Pushing changes"
git push https://$GITHUB_USER:$GITHUB_TOKEN@github.com/veggiemonk/awesome-docker master >/dev/null 2>&1
git push https://"$GIT_USER:$GITHUB_TOKEN"@github.com/veggiemonk/awesome-docker master >/dev/null 2>&1
echo "Done."