fix(automation): add scope=project to Fusion automation trigger URL
Some checks failed
Sync dev → Gitea / Mirror dev to Gitea (push) Has been cancelled

The POST /api/automations/<id>/run endpoint requires scope=project as a
query param alongside projectId — without it, 404 'Schedule not found'.
Discovered during manual smoke test.
This commit is contained in:
Fusion
2026-05-12 05:22:18 +00:00
parent e87aba8829
commit 140065980c

View File

@@ -74,5 +74,5 @@ jobs:
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" \
"https://fusion.semih.ai/api/automations/${{ secrets.FUSION_CHANGELOG_AUTOMATION_ID }}/run?projectId=proj_155fecc31ef14928&scope=project" \
|| echo "Fusion trigger failed (non-fatal, continuing)"