feat(FN-189): add CHANGELOG_AUTOMATION_TOKEN to env schema (+5 more)
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
Commits merged: - docs(FN-189): complete Step 7 — update docs/INDEX.md and MEMORY.md - fix(FN-189): lint fixes — import order, formatting - test(FN-189): complete Step 4 — add controller spec with 6 token auth scenarios - feat(FN-189): complete Step 3 — add Fusion changelog automation trigger to deploy workflow - feat(FN-189): complete Step 2 — add POST /api/changelog/internal endpoint with token auth - feat(FN-189): complete Step 1 — add CHANGELOG_AUTOMATION_TOKEN to env schema Files changed: .fusion/memory/MEMORY.md | 16 +++ .github/workflows/deploy.yml | 17 +++ .../api/src/changelog/changelog.controller.spec.ts | 122 +++++++++++++++++++++ apps/api/src/changelog/changelog.controller.ts | 49 ++++++++- docs/INDEX.md | 1 + packages/config/src/index.ts | 3 + 6 files changed, 207 insertions(+), 1 deletion(-) Fusion-Task-Id: FN-189
This commit is contained in:
17
.github/workflows/deploy.yml
vendored
17
.github/workflows/deploy.yml
vendored
@@ -59,3 +59,20 @@ jobs:
|
||||
pm2 reload ecosystem.config.js
|
||||
|
||||
echo "$(date '+%Y-%m-%d %H:%M:%S') - Deployment complete!"
|
||||
|
||||
# NOTE: This trigger only fires when the GitHub Actions SSH-deploy workflow runs.
|
||||
# Current production deploys are Coolify-driven via git.semih.ai webhooks (see MEMORY.md).
|
||||
# When the GitHub Actions workflow is re-activated for production, this step will
|
||||
# automatically call Fusion to create a changelog entry after a successful deploy.
|
||||
- name: Trigger Fusion changelog automation
|
||||
if: success()
|
||||
continue-on-error: true
|
||||
run: |
|
||||
if [ -z "${{ secrets.FUSION_CHANGELOG_AUTOMATION_ID }}" ] || [ -z "${{ secrets.FUSION_DAEMON_TOKEN }}" ]; then
|
||||
echo "Fusion changelog secrets not configured — skipping automation trigger"
|
||||
exit 0
|
||||
fi
|
||||
curl -sf -X POST \
|
||||
-H "Authorization: Bearer ${{ secrets.FUSION_DAEMON_TOKEN }}" \
|
||||
"https://fusion.semih.ai/api/automations/${{ secrets.FUSION_CHANGELOG_AUTOMATION_ID }}/run?projectId=proj_155fecc31ef14928" \
|
||||
|| echo "Fusion trigger failed (non-fatal, continuing)"
|
||||
|
||||
Reference in New Issue
Block a user