Use GitHub Action for deploying repo

This commit is contained in:
arkon
2020-11-12 19:22:02 -05:00
parent b2eb532944
commit 303d3e3633
10 changed files with 139 additions and 110 deletions

14
.github/scripts/commit-repo.sh vendored Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
set -e
rsync -a --delete --exclude .git --exclude .gitignore ../master/repo/ .
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git status
if [ -n "$(git status --porcelain)" ]; then
git add .
git commit -m "Update extensions repo"
git push
else
echo "No changes to commit"
fi