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
- Get latest commit SHA
- Get base tree SHA
- Create new tree
- Create commit
- Update branch
- When clicking ‘Test workflow’
- Set Github Info
- File 1
- File 2
- Error Handler
- Stopanderror 1
- Stopanderror 2
- Stopanderror 3
- Stopanderror 4
35 steps in total.
Similar automations