Files
sase.tr/.github/workflows/sync-dev-to-gitea.yml
Fusion f4fea1e429
Some checks failed
Sync dev → Gitea / Mirror dev to Gitea (push) Has been cancelled
feat(FN-094): add comment line for deployment verification
- Added a comment line to main.ts for deployment verification purposes
2026-05-11 02:07:03 +00:00

41 lines
1.1 KiB
YAML

name: Sync dev → Gitea
# When dev is updated on GitHub (Fusion auto-push or manual), mirror it
# to Gitea so Coolify's Gitea webhook redeploys dev.sase.tr.
on:
push:
branches: [dev]
# Allow manual re-sync from the Actions tab
workflow_dispatch:
concurrency:
group: sync-dev-gitea
cancel-in-progress: false
jobs:
sync:
name: Mirror dev to Gitea
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout dev (full history)
uses: actions/checkout@v4
with:
ref: dev
fetch-depth: 0
- name: Push to Gitea
env:
GITEA_PUSH_URL: ${{ secrets.GITEA_PUSH_URL }}
run: |
set -euo pipefail
if [ -z "$GITEA_PUSH_URL" ]; then
echo "::error::GITEA_PUSH_URL secret not set"
exit 1
fi
# Fast-forward push; if Gitea has diverged, surface the failure
# rather than silently force-overwriting.
git push "$GITEA_PUSH_URL" HEAD:refs/heads/dev
echo "✓ dev synced to Gitea ($(git rev-parse --short HEAD))"