AcademyWorkflowsDevelopment

Push and update files in GitHub

Development teams that want to automate small Git updates, such as timestamped README edits, from n8n.

  • Recommendedour rating
  • 4,976views on n8n
Open on n8n.io ↗

Paste it straight onto an n8n canvas with Ctrl+V or Cmd+V.

push-and-update-files-in-github.json

Loading the file...

What it does

This n8n template reads the README file from a GitHub repository, decodes it and adds a timestamp before saving it back. Its second branch works on a local Git repository: it updates a file, stages and commits the change, pushes it to GitHub and pulls remote changes. The two branches show how to run these Git tasks with n8n nodes.

Use cases

  1. 01Add a timestamp to a README stored on GitHub
  2. 02Commit and push local file changes from a workflow
  3. 03Pull remote changes into a local repository

Connects

GitHub · Code

Questions about
Push and update files in GitHub.

What is Push and update files in GitHub used for?

Development teams that want to automate small Git updates, such as timestamped README edits, from n8n. This n8n template reads the README file from a GitHub repository, decodes it and adds a timestamp before saving it back. Its second branch works on a local Git repository: it updates a file, stages and commits the change, pushes it to GitHub and pulls remote changes. The two branches show how to run these Git tasks with n8n nodes.

How do I import Push and update files in GitHub into n8n?

Copy the workflow JSON from this page and paste it onto the n8n canvas with Ctrl+V or Cmd+V. Then connect your credentials in each node.

Is Push and update files in GitHub safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.