Update .github/workflows/update-repo.yml

This commit is contained in:
2026-04-15 14:19:56 +02:00
parent bc862a87c4
commit dd8a2e5ea2

View File

@@ -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