diff --git a/.github/workflows/update-repo.yml b/.github/workflows/update-repo.yml index 4f2e861..803ea8e 100644 --- a/.github/workflows/update-repo.yml +++ b/.github/workflows/update-repo.yml @@ -98,4 +98,16 @@ jobs: sudo mkdir -p /var/www/hyprarch-repo/x86_64 sudo cp -rf . /var/www/hyprarch-repo/ sudo chown -R stui:www-data /var/www/hyprarch-repo - sudo chmod -R 755 /var/www/hyprarch-repo \ No newline at end of file + 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 \ No newline at end of file