Files
gitea-infrastructure/.github/workflows/sync-to-gitea.yml
Alex Mikhalev 1637782273 chore: Fix trailing whitespace across project files
Automated fix from pre-commit hooks (trailing-whitespace, end-of-file-fixer).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 12:45:32 +01:00

28 lines
798 B
YAML

name: Sync to Gitea
on:
push:
branches: [main, master]
workflow_dispatch: # Allow manual trigger
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0 # Full history
- name: Push to Gitea
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
run: |
git remote add gitea https://git.terraphim.cloud/terraphim/gitea-infrastructure.git
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
# Push to Gitea with token authentication
# If using HTTPS with token: https://token@url
git push https://oauth2:${GITEA_TOKEN}@git.terraphim.cloud/terraphim/gitea-infrastructure.git main