Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,14 @@ jobs:

- name: Verify custom-domain deployment identity
run: node scripts/verify-live-deployment.mjs "https://interdependentway.org" "${{ github.sha }}"

- name: Trigger Render MCP deploy
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
env:
RENDER_DEPLOY_HOOK_URL: ${{ secrets.RENDER_DEPLOY_HOOK_URL }}
run: |
if [ -z "$RENDER_DEPLOY_HOOK_URL" ]; then
echo "::warning::RENDER_DEPLOY_HOOK_URL is unset; Render MCP deployment remains hmmm."
exit 0
fi
curl --fail --show-error --silent --retry 3 --request POST "$RENDER_DEPLOY_HOOK_URL"
10 changes: 10 additions & 0 deletions tests/project-docs.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,13 @@ test('project refresh targets the live Render auto-deploy service', async () =>
assert.match(source, /https:\/\/the-interdependency-mcp-live\.onrender\.com\/api\/repository-refresh/);
assert.doesNotMatch(source, /https:\/\/the-interdependency-mcp\.onrender\.com\/api\/repository-refresh/);
});


test('Render deploy hook is explicit, secret-backed, and limited to main pushes', async () => {
const workflow = await readFile('.github/workflows/pages.yml', 'utf8');
assert.match(workflow, /name: Trigger Render MCP deploy/);
assert.match(workflow, /github\.event_name == 'push'/);
assert.match(workflow, /github\.ref == 'refs\/heads\/main'/);
assert.match(workflow, /secrets\.RENDER_DEPLOY_HOOK_URL/);
assert.match(workflow, /RENDER_DEPLOY_HOOK_URL is unset; Render MCP deployment remains hmmm/);
});
Loading