Skip to content

Commit

Permalink
add 74-n8n-integration
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeFalourd committed Dec 31, 2024
1 parent 2f1838c commit a66ded9
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/74-n8n-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: 73 - Run Step if File Exists

on:
workflow_dispatch:
inputs:
name:
description: "Name"
required: false
default: "John Doe"
email:
description: "Email"
required: false
default: "[email protected]"
message:
description: "Message"
required: false
default: "Hello, this is a test message!"

jobs:
n8n-integration:
runs-on: ubuntu-latest
steps:
- name: Send POST request to N8N workflow using cURL
run: |
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 }}"
}'

0 comments on commit a66ded9

Please sign in to comment.