Templates / Push and update files in GitHub

Push and update files in GitHub

Ready for 3.0

by n8n Team ✓ · 7,593 views · created 2023-08-29 · 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 10 nodes and runs manually, when you click “Execute workflow”. Along the way it connects GitHub.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. config (Edit Fields (Set)): sets or maps fields
  2. Pull (Git): pull
  3. Update README and add new file (Execute Command): runs a shell command on the n8n host
  4. Add files (Git): add
  5. Commit (Git): commit
  6. Push (Git): push
  7. GitHub: get (file)
  8. Decode file (Code): runs custom JavaScript code
  9. GitHub: edit (file)

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.

Rarely used nodes in this template: n8n-nodes-base.git

Nodes used (6)

From the author

This workflow performs various Git operations. It starts with a manual trigger, sets the local repository path, decodes a file and then updates a file's content, adds, commits, and pushes changes to a GitHub repository, and finally pulls changes. The upper…

Excerpt from n8n Team'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.