{
  "createdAt": "2025-06-03T08:57:51.188Z",
  "updatedAt": "2025-09-21T11:54:17.257Z",
  "id": "UTv0FkUWyLiHohj8",
  "name": "d26-Github\u4e0a\u50b3\uff08ithome\uff09",
  "active": true,
  "isArchived": false,
  "nodes": [
    {
      "parameters": {
        "filters": {
          "tags": "=ithome"
        },
        "requestOptions": {}
      },
      "type": "n8n-nodes-base.n8n",
      "typeVersion": 1,
      "position": [
        224,
        -112
      ],
      "id": "36b808cf-3626-4b18-abce-986080c39c22",
      "name": "n8n",
      "credentials": {
        "n8nApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "resource": "file",
        "owner": {
          "__rl": true,
          "value": "https://github.com/021up",
          "mode": "url"
        },
        "repository": {
          "__rl": true,
          "value": "n8n-learning",
          "mode": "list",
          "cachedResultName": "n8n-learning",
          "cachedResultUrl": "https://github.com/021up/n8n-learning"
        },
        "filePath": "=ITHome/{{ $json.id }}.json",
        "fileContent": "={{JSON.stringify($json, null, 2)}}",
        "commitMessage": "=\u300c{{ $json.name }}\u300d\uff5c\u6700\u5f8c\u66f4\u65b0\u65bc {{ $json.updatedAt }}"
      },
      "type": "n8n-nodes-base.github",
      "typeVersion": 1.1,
      "position": [
        672,
        -256
      ],
      "id": "883b3653-36e6-4ef3-bb9d-277387f7ff5a",
      "name": "GitHub1",
      "credentials": {
        "githubApi": {
          "name": "<your credential>"
        }
      },
      "onError": "continueRegularOutput"
    },
    {
      "parameters": {
        "resource": "file",
        "operation": "edit",
        "owner": {
          "__rl": true,
          "value": "https://github.com/021up",
          "mode": "url"
        },
        "repository": {
          "__rl": true,
          "value": "n8n-learning",
          "mode": "list",
          "cachedResultName": "n8n-learning",
          "cachedResultUrl": "https://github.com/021up/n8n-learning"
        },
        "filePath": "=ITHome/{{ $('n8n').item.json.id }}.json",
        "fileContent": "={{JSON.stringify($('n8n').item.json, null, 2)}}",
        "commitMessage": "=\u300c{{ $('n8n').item.json.name }}\u300d\uff5c\u6700\u5f8c\u66f4\u65b0\u65bc {{ $('n8n').item.json.updatedAt }}"
      },
      "type": "n8n-nodes-base.github",
      "typeVersion": 1.1,
      "position": [
        1120,
        -112
      ],
      "id": "a45515a7-87b7-4c6c-b84a-a53ea901f753",
      "name": "GitHub2",
      "credentials": {
        "githubApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "dee2646d-5ac5-49d3-a5ad-e9717e2349dc",
              "leftValue": "={{ $json.error }}",
              "rightValue": "",
              "operator": {
                "type": "string",
                "operation": "notEmpty",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        896,
        -192
      ],
      "id": "5d50cae6-b36a-44fc-89c6-03a18c2884ab",
      "name": "If"
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "n8n-nodes-base.splitInBatches",
      "typeVersion": 3,
      "position": [
        448,
        -112
      ],
      "id": "031ff11c-dcec-4668-a1da-914f25957bcb",
      "name": "Loop Over Items"
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        -208
      ],
      "id": "7c65375e-a254-4323-a163-712c50cb60b9",
      "name": "When clicking \u2018Execute workflow\u2019"
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {}
          ]
        }
      },
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        -16
      ],
      "id": "904242b9-3ac4-48c8-b271-ec3132ad923c",
      "name": "Schedule Trigger"
    }
  ],
  "connections": {
    "n8n": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GitHub1": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If": {
      "main": [
        [
          {
            "node": "GitHub2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "GitHub1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GitHub2": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking \u2018Execute workflow\u2019": {
      "main": [
        [
          {
            "node": "n8n",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "n8n",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "staticData": {
    "node:Schedule Trigger": {
      "recurrenceRules": []
    }
  },
  "meta": null,
  "versionId": "5631a53d-ef67-4383-994b-60e3ea0da4cb",
  "triggerCount": 1,
  "shared": [
    {
      "createdAt": "2025-06-03T08:57:51.188Z",
      "updatedAt": "2025-06-03T08:57:51.188Z",
      "role": "workflow:owner",
      "workflowId": "UTv0FkUWyLiHohj8",
      "projectId": "6NV7foKyOeJG8Mz6"
    }
  ],
  "tags": [
    {
      "createdAt": "2025-09-14T06:27:04.834Z",
      "updatedAt": "2025-09-14T06:27:04.834Z",
      "id": "S14KyMmdLj6QsyYh",
      "name": "ithome"
    }
  ]
}