Sync GitHub Markdown docs with StudioCMS pages and taxonomy
UnknownWhat this workflow does
This workflow has 33 nodes and runs manually, when you click “Execute workflow”. Along the way it connects GitHub and Studiocms (community).
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Set GitHub Content Parameters (Edit Fields (Set)): sets 5 fields: githubOwner, githubRepository, sourcePath…
- Fetch GitHub Directory Files (GitHub): list (file)
- Filter Markdown and MDX Files (Code): runs custom JavaScript code
- Route by Content Existence (Switch): routes items into 2 branches
- Fetch Individual Markdown Files (GitHub): get (file)
- Alert Empty Source Directory (Code): runs custom JavaScript code
- Extract Markdown Frontmatter (Code): runs custom JavaScript code
- Validate Markdown Documents (Code): runs custom JavaScript code
- Retrieve StudioCMS Folders (Studio Cms): get many (folder)
- Fetch StudioCMS Categories (Studio Cms): get many (category)
…plus 19 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that @blackswampai/n8n-nodes-studiocms is verified or supports 3.0 (used in Retrieve StudioCMS Folders, Fetch StudioCMS Categories, Retrieve StudioCMS Tags).
Nodes used (8)
- Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - GitHub
n8n-nodes-base.github - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch - Studio Cms
@blackswampai/n8n-nodes-studiocms.studioCms - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - No Operation, do nothing
n8n-nodes-base.noOp
From the author
Quick overview This workflow manually syncs a GitHub directory of Markdown/MDX files to StudioCMS by parsing frontmatter, creating missing folders/categories/tags, and then creating, updating, skipping, or drafting pages based on slug comparisons. How it…