29 lines
673 B
YAML
29 lines
673 B
YAML
name: sync-to-gitea
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
sync:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Push to Gitea main
|
|
env:
|
|
GITEA_TOKEN: ${{ secrets.GITEA_SECRET }}
|
|
run: |
|
|
echo "Syncing nxtgauge-ai-assistant:main → Gitea main"
|
|
echo "Commit: $(git rev-parse HEAD)"
|
|
|
|
git remote add gitea "https://Admin:${GITEA_TOKEN}@ci.nxtgauge.com/Admin/nxtgauge-ai-assistant.git"
|
|
git push gitea main:main --force-with-lease
|
|
|
|
echo "Sync complete!"
|