Skip to content

Commit

Permalink
update 74-n8n-integration
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeFalourd committed Dec 31, 2024
1 parent 72d5b3a commit b69c485
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/74-n8n-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,20 @@ jobs:
n8n-integration:
runs-on: ubuntu-latest
steps:
- name: Send POST request to N8N workflow using cURL
- name: Send POST request to N8N workflow using cURL to open an issue on this repository
env:
WORKFLOW_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
run: |
echo "Workflow URL: $WORKFLOW_URL"
curl -X POST https://${{secrets.N8N_ACCOUNT}}.app.n8n.cloud/webhook/${{ secrets.N8N_PATH}} \
-H "Content-Type: application/json" \
-d '{
"name": "${{ inputs.name }}",
"email": "${{ inputs.email }}",
"message": "${{ inputs.message }}"
}'
"workflow_url": "'"$WORKFLOW_URL"'"
}'
if [ $? -ne 0 ]; then
echo "Error: cURL request failed."
exit 1
fi

0 comments on commit b69c485

Please sign in to comment.