What This Workflow Does
This automation solves the tedious manual process of exporting Android drawable assets from Figma and committing them to GitHub. Mobile developers often waste hours exporting icons, buttons, and other UI elements at multiple densities (1x, 1.5x, 2x, 3x, 4x), then manually creating pull requests to update the assets in their repository.
The workflow automatically detects changes in Figma components, exports PNG files at all required densities, creates a new branch in your GitHub repository, commits the assets to the correct drawable folders, and opens a pull request for review. This ensures your Android project always stays in sync with the latest design assets while maintaining proper version control through GitHub's PR process.
How It Works
1. Figma asset monitoring
The workflow regularly checks your specified Figma file for changes to components marked as Android assets. It identifies modified frames, layers, or components that need to be exported.
2. Multi-density PNG export
For each asset, the workflow generates PNG files at all standard Android density buckets: mdpi (1x), hdpi (1.5x), xhdpi (2x), xxhdpi (3x), and xxxhdpi (4x). This ensures crisp rendering on all device screens.
3. GitHub repository update
The workflow creates a new branch in your GitHub repository, commits the exported PNGs to their respective density-specific folders (res/drawable-mdpi, res/drawable-hdpi, etc.), and opens a pull request with descriptive commit messages.
4. Notification and review
Team members receive notifications about the new PR and can review the asset changes before merging. The workflow can optionally tag specific reviewers based on the modified components.
Who This Is For
This automation is ideal for:
- Mobile development teams using Figma for design and GitHub for version control
- Designers who need to ensure their assets are properly implemented in the codebase
- Engineering managers looking to reduce manual asset synchronization tasks
- Teams practicing design system governance who want audit trails for asset changes
What You'll Need
- A Figma account with editor access to the design file
- A GitHub repository with write access
- n8n instance (self-hosted or cloud)
- Figma components properly organized and named for Android export
Quick Setup Guide
- Download the JSON template file
- Import into your n8n instance
- Configure Figma and GitHub credentials
- Set your Figma file ID and component selection criteria
- Specify your GitHub repository details and branch naming convention
- Test with a single component before enabling full automation
Key Benefits
Eliminates manual export errors: No more forgetting to update all density versions or placing files in wrong folders.
Saves 5-10 hours per month: Automating this repetitive task gives your team back valuable development time.
Improves design-dev handoff: Creates a clear audit trail of when assets were updated and by whom.
Maintains version control: All changes go through GitHub's PR process for proper code review.
Ensures pixel-perfect implementation: Guarantees designers' intent is preserved in the final app.