Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Code, Git & Developer Tools

Code, Git & Developer Tools

Push Multiple Files to GitHub with the REST API

When you run it, it gets the latest commit, creates a new tree and commit with several files and updates the branch through the GitHub REST API.

What it does

# Push Multiple Files to Github Repo via Github REST API ## Overview Automated workflow: Push Multiple Files to Github Repo via Github REST API. This workflow integrates 5 different services: stickyNote, httpRequest, set, stopAndError, manualTrigger. It contains 20 nodes and follows best practices for error handling and security. ## Workflow Details - Total Nodes: 20 - Node Types: 5 - Error Handling: ✅ Implemented - Security: ✅ Hardened (no sensitive data) - Documentation: ✅ Complete ## Node Breakdown - Get latest commit SHA: httpRequest - Get base tree SHA: httpRequest - Create new tree: httpRequest - Create commit: httpRequest - Update branch: httpRequest - When clicking ‘Test workflow’: manualTrigger - Set Github Info: set - Sticky Note1: stickyNote - File 1: set - File 2: set - ... and 10 more nodes ## Usage Instructions 1. Configure Credentials: Set up all required API keys and credentials 2. Update Variables: Replace any placeholder values with actual data 3. Test Workflow: Run in test mode to verify functionality 4. Deploy: Activate the workflow for production use ## Security Notes - All sensitive data has been removed or replaced with placeholders - Error handling is implemented for reliability - Follow security best practices when configuring credentials ## Troubleshooting - Check error logs if workflow fails - Verify all credentials are properly configured - Ensure all required services are accessible

The steps

  1. Get latest commit SHA
  2. Get base tree SHA
  3. Create new tree
  4. Create commit
  5. Update branch
  6. When clicking ‘Test workflow’
  7. Set Github Info
  8. File 1
  9. File 2
  10. Error Handler
  11. Stopanderror 1
  12. Stopanderror 2
  13. Stopanderror 3
  14. Stopanderror 4

35 steps in total.

Similar automations