From 1a521e0f3a091e212a1ea7e3f1861e56a03a61ba Mon Sep 17 00:00:00 2001 From: shayanabbas Date: Sat, 14 Jun 2025 03:53:53 +0300 Subject: [PATCH 1/2] import all workflows to local n8n --- import-workflows.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 import-workflows.sh diff --git a/import-workflows.sh b/import-workflows.sh new file mode 100755 index 0000000..0a3197f --- /dev/null +++ b/import-workflows.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +WORKFLOW_DIR="./workflows" + +for file in "$WORKFLOW_DIR"/*.json +do + echo "Importing $file..." + npx n8n import:workflow --input="$file" +done + From 39cdc76ecaadcccdb948e6bfff21f833443b9b72 Mon Sep 17 00:00:00 2001 From: shayanabbas Date: Sat, 14 Jun 2025 16:34:36 +0300 Subject: [PATCH 2/2] Update Readme files --- README.md | 4 ++++ README_zh-hant.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/README.md b/README.md index 160b7a0..375f298 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,10 @@ To import a workflow into your own n8n instance: Make sure to review and modify credentials or webhook URLs as needed before running. +To import all workflows at once run following: + +`./import-workflows.sh` + --- ## 🤝 Contribution diff --git a/README_zh-hant.md b/README_zh-hant.md index 4fd1c1c..bf13572 100644 --- a/README_zh-hant.md +++ b/README_zh-hant.md @@ -40,6 +40,10 @@ 在執行前,請確保檢查並修改所需的憑證或 webhook URL。 +若要一次匯入所有工作流程,請執行下列命令: + +`./import-workflows.sh` + --- ## 📋 工作流程清單