feat: add folder support for workflows (fixes #70)
This commit is contained in:
@@ -0,0 +1,93 @@
|
||||
{
|
||||
"nodes": [
|
||||
{
|
||||
"name": "Netlify Trigger",
|
||||
"type": "n8n-nodes-base.netlifyTrigger",
|
||||
"position": [
|
||||
450,
|
||||
300
|
||||
],
|
||||
"webhookId": "df7efc17-09bb-4409-9f6f-09bd5e59546e",
|
||||
"parameters": {
|
||||
"event": "submissionCreated",
|
||||
"formId": "615ad58f9f491e00070abac5",
|
||||
"siteId": "b585059c-a19a-487c-831f-c57af6f13bd1"
|
||||
},
|
||||
"credentials": {
|
||||
"netlifyApi": "Netlify account"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"name": "Set",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"position": [
|
||||
650,
|
||||
300
|
||||
],
|
||||
"parameters": {
|
||||
"values": {
|
||||
"string": [
|
||||
{
|
||||
"name": "Name",
|
||||
"value": "={{$json[\"name\"]}}"
|
||||
},
|
||||
{
|
||||
"name": "Email",
|
||||
"value": "={{$json[\"email\"]}}"
|
||||
},
|
||||
{
|
||||
"name": "Role",
|
||||
"value": "={{$json[\"role\"][0]}}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {},
|
||||
"keepOnlySet": true
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"name": "Airtable",
|
||||
"type": "n8n-nodes-base.airtable",
|
||||
"position": [
|
||||
850,
|
||||
300
|
||||
],
|
||||
"parameters": {
|
||||
"table": "Table 1",
|
||||
"options": {},
|
||||
"operation": "append",
|
||||
"application": "apphwBsFxzjDPDBA8"
|
||||
},
|
||||
"credentials": {
|
||||
"airtableApi": "Airtable Credentials @n8n"
|
||||
},
|
||||
"typeVersion": 1
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"Set": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Airtable",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Netlify Trigger": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Set",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
51
workflows/Netlify/0104_Netlify_Webhook_Automate_Webhook.json
Normal file
51
workflows/Netlify/0104_Netlify_Webhook_Automate_Webhook.json
Normal file
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"nodes": [
|
||||
{
|
||||
"name": "Webhook",
|
||||
"type": "n8n-nodes-base.webhook",
|
||||
"position": [
|
||||
450,
|
||||
300
|
||||
],
|
||||
"webhookId": "0d36a8db-0177-4501-9f7a-e46b6829d07a",
|
||||
"parameters": {
|
||||
"path": "0d36a8db-0177-4501-9f7a-e46b6829d07a",
|
||||
"options": {},
|
||||
"httpMethod": "POST"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"name": "Netlify",
|
||||
"type": "n8n-nodes-base.netlify",
|
||||
"position": [
|
||||
650,
|
||||
300
|
||||
],
|
||||
"parameters": {
|
||||
"siteId": "5e15e032-9345-41b8-a98f-509e545f061c",
|
||||
"operation": "create",
|
||||
"additionalFields": {
|
||||
"title": "={{$json[\"body\"][\"data\"][\"title\"]}}"
|
||||
}
|
||||
},
|
||||
"credentials": {
|
||||
"netlifyApi": "Netlify account"
|
||||
},
|
||||
"typeVersion": 1
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"Webhook": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Netlify",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
52
workflows/Netlify/0105_Netlify_Slack_Automate_Triggered.json
Normal file
52
workflows/Netlify/0105_Netlify_Slack_Automate_Triggered.json
Normal file
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"nodes": [
|
||||
{
|
||||
"name": "Netlify Trigger",
|
||||
"type": "n8n-nodes-base.netlifyTrigger",
|
||||
"position": [
|
||||
450,
|
||||
300
|
||||
],
|
||||
"webhookId": "0654820c-1960-4c8b-80fc-c0a66ab96577",
|
||||
"parameters": {
|
||||
"event": "deployFailed",
|
||||
"siteId": "ab52947e-a696-4498-a5a1-fae7fbe30c84"
|
||||
},
|
||||
"credentials": {
|
||||
"netlifyApi": "Netlify account"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"name": "Slack",
|
||||
"type": "n8n-nodes-base.slack",
|
||||
"position": [
|
||||
650,
|
||||
300
|
||||
],
|
||||
"parameters": {
|
||||
"text": "=🚨 Deploy Failed 🚨\nDeploy for the site {{$json[\"name\"]}} failed.\nError Message: {{$json[\"error_message\"]}}\nYou can find more information here: https://app.netlify.com/sites/{{$json[\"name\"]}}/deploys/{{$json[\"id\"]}}",
|
||||
"channel": "general",
|
||||
"attachments": [],
|
||||
"otherOptions": {}
|
||||
},
|
||||
"credentials": {
|
||||
"slackApi": "read-history"
|
||||
},
|
||||
"typeVersion": 1
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"Netlify Trigger": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Slack",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user