Update .github/workflows/update-repo.yml
This commit is contained in:
12
.github/workflows/update-repo.yml
vendored
12
.github/workflows/update-repo.yml
vendored
@@ -99,3 +99,15 @@ jobs:
|
|||||||
sudo cp -rf . /var/www/hyprarch-repo/
|
sudo cp -rf . /var/www/hyprarch-repo/
|
||||||
sudo chown -R stui:www-data /var/www/hyprarch-repo
|
sudo chown -R stui:www-data /var/www/hyprarch-repo
|
||||||
sudo chmod -R 755 /var/www/hyprarch-repo
|
sudo chmod -R 755 /var/www/hyprarch-repo
|
||||||
|
- name: Push to Gitea
|
||||||
|
run: |
|
||||||
|
git config --global user.name "GitHub Actions"
|
||||||
|
git config --global user.email "actions@github.com"
|
||||||
|
git add .
|
||||||
|
if git diff --staged --quiet; then
|
||||||
|
echo "No changes to commit."
|
||||||
|
else
|
||||||
|
git commit -m "Automated repo update: $(date)"
|
||||||
|
# Note: Mitsuba100 is used here as the user; adjust if the Gitea repo owner is different.
|
||||||
|
git push https://Mitsuba100:${{ secrets.GITEAPAT }}@git.stuple.net/Mitsuba100/hyprarch-repo.git main
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user