Revise the URL of n8n in CI workflow #9
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Close Snapshot | |
| on: | |
| pull_request: | |
| types: | |
| - closed | |
| jobs: | |
| Close: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Trigger n8n Snapshot Webhook | |
| run: | | |
| curl -X POST https://webhook.sdc.nycu.club/webhook/deploy \ | |
| -H "Content-Type: application/json" \ | |
| -H "x-deploy-token: ${{ secrets.N8N_DEPLOY_TOKEN }}" \ | |
| -d '{ | |
| "source": { | |
| "title": "Core System", | |
| "repo": "${{ github.repository }}", | |
| "branch": "${{ github.head_ref || github.ref_name }}", | |
| "commit": "${{ github.sha }}", | |
| "pr_number": "${{ github.event.pull_request.number }}" | |
| }, | |
| "method": "cleanup", | |
| "metadata": { | |
| "environment": "snapshot", | |
| "component": "frontend" | |
| }, | |
| "post": { | |
| "notify_discord": { | |
| "enable": true, | |
| "channel": "core-system-activity" | |
| }, | |
| "cleanup_domain": { | |
| "enable": true, | |
| "name": "pr-${{ github.event.pull_request.number }}.core-system.sdc.nycu.club", | |
| } | |
| } | |
| }' |