Templates / Sync GitHub workflows to n8n after pull request merges

Sync GitHub workflows to n8n after pull request merges

Ready for 3.0

by Bao Duy Nguyen ✓ · 1,988 views · created 2025-05-30 · DevOps

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 13 nodes and runs on Github events (pull request). Along the way it connects GitHub.

How it runs

Trigger: On Github events (pull request).

  1. Define Local Variables (Edit Fields (Set)): sets 2 fields: github_owner, repo_name
  2. Check if trigger event is pull request merged (Filter): keeps only the items that match a condition
  3. Fetch merged commit details via GitHub API (HTTP Request): calls an HTTP API
  4. Get files changes details (Split Out): splits a list into separate items
  5. Filter: keeps only the items that match a condition
  6. Filter: keeps only the items that match a condition
  7. Fetch workflow content from Git (GitHub): get (file)
  8. Fetch workflow content from Git (GitHub): get (file)
  9. Decode workflow content to json (Edit Fields (Set)): sets or maps fields
  10. Decode workflow content to json (Edit Fields (Set)): sets or maps fields

…plus 2 more steps. See the full node list below.

Services it uses

GitHub

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (7)

From the author

Who is this for? This template is ideal for developers, DevOps engineers, and automation managers who manage their n8n workflows using GitHub. It helps teams streamline their CI/CD automation by syncing changes from GitHub directly into n8n after a pull…

Excerpt from Bao Duy Nguyen's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.