diff --git a/README.md b/README.md index e72c454..f36f34f 100644 --- a/README.md +++ b/README.md @@ -91,6 +91,10 @@ Files are organized with descriptive names indicating their functionality. - **Categories**: Data sync, notifications, integrations, monitoring, and more - **Services**: 100+ different platforms and APIs represented +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` + --- ## 📋 工作流程清單 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 +