GitHub에 대한 일일 자동화 워크플로우 백업
중급
이것은Engineering, DevOps, AI분야의자동화 워크플로우로, 13개의 노드를 포함합니다.주로 If, N8n, Set, Github, Aggregate 등의 노드를 사용하며인공지능 기술을 결합하여 스마트 자동화를 구현합니다. GitHub에 대한 일일 자동화 워크플로우 백업
사전 요구사항
- •GitHub Personal Access Token
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
"nodes": [
{
"id": "2aafc10f-0bb7-419f-a6b3-fa90f5f68653",
"name": "Schedule Trigger",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
100,
-20
],
"parameters": {
"rule": {
"interval": [
{}
]
}
},
"typeVersion": 1.2
},
{
"id": "da87b4f8-4507-456b-bfc3-3ae7d9400449",
"name": "워크플로우 검색",
"type": "n8n-nodes-base.n8n",
"position": [
580,
-20
],
"parameters": {
"filters": {},
"requestOptions": {}
},
"typeVersion": 1
},
{
"id": "6cd7d968-6fa0-4ab0-ac58-ceb15c8b7b4a",
"name": "집계",
"type": "n8n-nodes-base.aggregate",
"position": [
420,
-20
],
"parameters": {
"options": {},
"fieldsToAggregate": {
"fieldToAggregate": [
{
"fieldToAggregate": "name"
}
]
}
},
"typeVersion": 1
},
{
"id": "854f6e82-babb-474e-a138-2a6c398fd60e",
"name": "저장소에서 파일 목록 가져오기",
"type": "n8n-nodes-base.github",
"position": [
260,
-20
],
"webhookId": "354d699e-44b0-4444-9d31-af7fd4ff5561",
"parameters": {
"owner": {
"__rl": true,
"mode": "name",
"value": ""
},
"filePath": "=",
"resource": "file",
"operation": "list",
"repository": {
"__rl": true,
"mode": "list",
"value": ""
},
"authentication": "oAuth2"
},
"typeVersion": 1,
"alwaysOutputData": true
},
{
"id": "8abba016-1f34-420a-b10b-3c8e44297725",
"name": "파일 업데이트",
"type": "n8n-nodes-base.github",
"position": [
1380,
-100
],
"webhookId": "27218087-8df7-474d-a39f-70cfa9c34ec8",
"parameters": {
"owner": {
"__rl": true,
"mode": "name",
"value": ""
},
"filePath": "={{ $('Retrieve workflows').item.json.name.replace(/\\s+/g, '-').toLowerCase() }}-{{ $('Retrieve workflows').item.json.tags[0].name }}.json",
"resource": "file",
"operation": "edit",
"repository": {
"__rl": true,
"mode": "list",
"value": ""
},
"fileContent": "={{ $('To base64').item.json.data }}",
"commitMessage": "=backup-{{ $('Commit date & file name').item.json.commitDate }}",
"authentication": "oAuth2"
},
"typeVersion": 1
},
{
"id": "d55efcc7-5873-4c9a-b374-b7b31814905b",
"name": "파일 업로드",
"type": "n8n-nodes-base.github",
"position": [
1380,
60
],
"webhookId": "ce4b561b-acb9-4cd8-b76f-4928dada9674",
"parameters": {
"owner": {
"__rl": true,
"mode": "name",
"value": ""
},
"filePath": "={{ $('Retrieve workflows').item.json.name.replace(/\\s+/g, '-').toLowerCase() }}-{{ $('Retrieve workflows').item.json.tags[0].name }}.json",
"resource": "file",
"repository": {
"__rl": true,
"mode": "list",
"value": ""
},
"fileContent": "={{ $('To base64').item.json.data }}",
"commitMessage": "=backup-{{ $node['Commit date & file name'].json.commitDate }}",
"authentication": "oAuth2"
},
"typeVersion": 1
},
{
"id": "09909c9f-8a68-4670-8396-65fae9be51ff",
"name": "파일 존재 여부 확인",
"type": "n8n-nodes-base.if",
"position": [
1220,
-20
],
"parameters": {
"conditions": {
"string": [
{
"value1": "={{ $('Aggregate').item.json.name }}",
"value2": "={{ $('Retrieve workflows').item.json.name.replace(/\\s+/g, '-').toLowerCase() }}-{{ $('Retrieve workflows').item.json.tags[0].name }}.json",
"operation": "contains"
}
]
}
},
"typeVersion": 1
},
{
"id": "43990124-eac4-4c57-9da3-39053d9e5850",
"name": "Json 파일",
"type": "n8n-nodes-base.convertToFile",
"position": [
740,
-20
],
"parameters": {
"mode": "each",
"options": {
"format": true
},
"operation": "toJson"
},
"typeVersion": 1.1
},
{
"id": "956de457-4d05-4ea8-be7b-390861a739d4",
"name": "To base64",
"type": "n8n-nodes-base.extractFromFile",
"position": [
900,
-20
],
"parameters": {
"options": {},
"operation": "binaryToPropery"
},
"typeVersion": 1
},
{
"id": "fc258985-2621-42a3-9bc6-01048a92b702",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
240,
-160
],
"parameters": {
"color": 5,
"width": 300,
"height": 380,
"content": "### Retrieve previous file names from Github"
},
"typeVersion": 1
},
{
"id": "1bfedd8f-1921-4f33-aa45-7ab612f26059",
"name": "커밋 날짜 및 파일 이름",
"type": "n8n-nodes-base.set",
"position": [
1060,
-20
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "fe4a36ef-9f04-40e3-99bd-cc517a49b440",
"name": "commitDate",
"type": "string",
"value": "={{ $now.format('dd-MM-yyyy/H:mm') }}"
},
{
"id": "b0fe1bcc-e79c-4a6b-b8b4-44222c8bf4e8",
"name": "fileName",
"type": "string",
"value": "={{ $('Retrieve workflows').item.json.name.replace(/\\s+/g, '-').toLowerCase() }}-{{ $('Retrieve workflows').item.json.tags[0].name }}.json"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "2f36af66-12ca-451a-a1ca-c5a71b94b644",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
560,
-160
],
"parameters": {
"color": 3,
"width": 460,
"height": 380,
"content": "### Retrieve and process workflows from n8n"
},
"typeVersion": 1
},
{
"id": "dc914f31-e6b5-43b0-8a4e-f9f46118fa30",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
1040,
-160
],
"parameters": {
"color": 4,
"width": 460,
"height": 380,
"content": "### Commit + edit/create files if needed"
},
"typeVersion": 1
}
],
"connections": {
"6cd7d968-6fa0-4ab0-ac58-ceb15c8b7b4a": {
"main": [
[
{
"node": "da87b4f8-4507-456b-bfc3-3ae7d9400449",
"type": "main",
"index": 0
}
]
]
},
"43990124-eac4-4c57-9da3-39053d9e5850": {
"main": [
[
{
"node": "956de457-4d05-4ea8-be7b-390861a739d4",
"type": "main",
"index": 0
}
]
]
},
"956de457-4d05-4ea8-be7b-390861a739d4": {
"main": [
[
{
"node": "1bfedd8f-1921-4f33-aa45-7ab612f26059",
"type": "main",
"index": 0
}
]
]
},
"2aafc10f-0bb7-419f-a6b3-fa90f5f68653": {
"main": [
[
{
"node": "854f6e82-babb-474e-a138-2a6c398fd60e",
"type": "main",
"index": 0
}
]
]
},
"da87b4f8-4507-456b-bfc3-3ae7d9400449": {
"main": [
[
{
"node": "43990124-eac4-4c57-9da3-39053d9e5850",
"type": "main",
"index": 0
}
]
]
},
"09909c9f-8a68-4670-8396-65fae9be51ff": {
"main": [
[
{
"node": "8abba016-1f34-420a-b10b-3c8e44297725",
"type": "main",
"index": 0
}
],
[
{
"node": "d55efcc7-5873-4c9a-b374-b7b31814905b",
"type": "main",
"index": 0
}
]
]
},
"854f6e82-babb-474e-a138-2a6c398fd60e": {
"main": [
[
{
"node": "6cd7d968-6fa0-4ab0-ac58-ceb15c8b7b4a",
"type": "main",
"index": 0
}
]
]
},
"1bfedd8f-1921-4f33-aa45-7ab612f26059": {
"main": [
[
{
"node": "09909c9f-8a68-4670-8396-65fae9be51ff",
"type": "main",
"index": 0
}
]
]
}
}
}자주 묻는 질문
이 워크플로우를 어떻게 사용하나요?
위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.
이 워크플로우는 어떤 시나리오에 적합한가요?
중급 - 엔지니어링, 데브옵스, 인공지능
유료인가요?
이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.
관련 워크플로우 추천
Airtable 전체 백업
Airtable데이터库백업로S3
If
Set
Aws S3
+
If
Set
Aws S3
19 노드Autonomous Work
엔지니어링
github_repo_workflows_sync
n8n 작업 흐름의 양방향 GitHub 작업 흐름 동기화 및 버전 제어
If
N8n
Set
+
If
N8n
Set
25 노드Wikus Bergh
인공지능
데이터베이스 아키텍처만으로 SQL 쿼리 생성 - AI 기반
데이터베이스 아키텍처만으로 SQL 쿼리 생성 - AI 추동
If
Set
Merge
+
If
Set
Merge
29 노드Yulia
엔지니어링
[템플릿] AI 반려동물 가게 v8
🐶 AI 펫 샵 어시스턴트 - GPT-4o, Google 캘린더 및 WhatsApp/Instagram/Facebook 통합
If
N8n
Set
+
If
N8n
Set
244 노드Amanda Benks
영업
AI 대리인 레스토랑 [템플릿]
🤖 WhatsApp, 인스타그램, 메신저의 AI 레스토랑 도우미
If
N8n
Set
+
If
N8n
Set
239 노드Amanda Benks
기타
다이나믹 GitHub 작업 흐름
🔄 Workflow Repos8r: n8n 워크플로우의 GitHub 버전 관리 사용자 인터페이스
N8n
Set
Code
+
N8n
Set
Code
44 노드RealSimple Solutions
엔지니어링