feat(FN-094): add comment line for deployment verification
Some checks failed
Sync dev → Gitea / Mirror dev to Gitea (push) Has been cancelled
Some checks failed
Sync dev → Gitea / Mirror dev to Gitea (push) Has been cancelled
- Added a comment line to main.ts for deployment verification purposes
This commit is contained in:
40
.github/workflows/sync-dev-to-gitea.yml
vendored
Normal file
40
.github/workflows/sync-dev-to-gitea.yml
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
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))"
|
||||
Reference in New Issue
Block a user