n8n
Workflow
Trigger A Build In Travis Ci When Code Changes Are Push To A Github Repo
This n8n workflow automates tasks using GitHub. Trigger A Build In Travis Ci When Code Changes Are Push To A Github Repo - ready to import and run in your n8n instance.
n8n
workflow.json
About This Script
This n8n workflow automates tasks using GitHub. Trigger A Build In Travis Ci When Code Changes Are Push To A Github Repo - ready to import and run in your n8n instance.
Features:
- Conditional logic and branching
- Integrates with GitHub
Source Code
{
"nodes": [
{
"name": "Github Trigger",
"type": "n8n-nodes-base.githubTrigger",
"position": [
450,
300
],
"webhookId": "01518289-14b1-4a45-9d33-39be08f7a544",
"parameters": {
"owner": "n8n-io",
"events": [
"push",
"pull_request"
],
"repository": "n8n",
"authentication": "oAuth2"
},
"credentials": {
"githubOAuth2Api": "GitHub Credentials"
},
"typeVersion": 1,
"id": "5bf8a502-b821-4888-9643-1a08e81d57dc"
},
{
"name": "IF",
"type": "n8n-nodes-base.if",
"position": [
650,
300
],
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"headers\"][\"x-github-event\"]}}",
"value2": "push"
},
{
"value1": "={{$json[\"body\"][\"action\"]}}",
"value2": "opened"
}
]
},
"combineOperation": "any"
},
"typeVersion": 1,
"id": "9765f4d1-3d6d-4ef6-b284-fb486bafda35"
},
{
"name": "TravisCI",
"type": "n8n-nodes-base.travisCi",
"position": [
850,
200
],
"parameters": {
"slug": "={{$json[\"body\"][\"repository\"][\"full_name\"]}}",
"branch": "=",
"operation": "trigger",
"additionalFields": []
},
"credentials": {
"travisCiApi": "Travis API"
},
"typeVersion": 1,
"id": "a5695b42-e9f3-4f37-9e7b-ad8e29ecc007"
},
{
"name": "NoOp",
"type": "n8n-nodes-base.noOp",
"position": [
850,
400
],
"parameters": [],
"typeVersion": 1,
"id": "b0af7664-36c2-4b8c-a411-43c969c3e19a"
}
],
"connections": {
"IF": {
"main": [
[
{
"node": "TravisCI",
"type": "main",
"index": 0
}
],
[
{
"node": "NoOp",
"type": "main",
"index": 0
}
]
]
},
"Github Trigger": {
"main": [
[
{
"node": "IF",
"type": "main",
"index": 0
}
]
]
}
},
"n8n_version": "1.5.0"
}
Requirements
n8n instance, Github API credentials
Tags
#n8n
#automation
#workflow