Automate Your n8n Updates Seamlessly
detail.loadingPreview
This workflow automates the process of checking for and potentially preparing for n8n version updates. It leverages scheduled checks to ensure your n8n instance stays current with minimal manual intervention.
About This Workflow
This n8n workflow is designed to bring proactive management to your n8n instance's version control. It begins with a schedule trigger, set to check for updates at a specified time daily. The workflow then fetches the latest available n8n version from npm, simultaneously retrieving the current version of your local n8n instance. A conditional 'If' node compares these versions, and if a new version is detected, it triggers an SSH command to create a file indicating an update is pending. This provides a robust, automated solution for staying on the cutting edge of n8n's capabilities, ensuring you benefit from the latest features and security patches.
Key Features
- Scheduled Version Checks: Automatically scans for new n8n versions at your preferred interval.
- Cross-Version Comparison: Accurately compares your local n8n version against the latest available release.
- Conditional Update Trigger: Initiates specific actions only when an update is deemed necessary.
- SSH Integration: Leverages SSH to execute commands on your server, facilitating update preparation.
- Clear Update Indicators: Creates a file to signal pending updates for easy monitoring.
How To Use
- Schedule Trigger: Configure the 'Schedule Trigger' node to run daily at your desired hour (e.g., 5 AM). This node initiates the workflow.
- Get Latest n8n Version: The 'Get the latest n8n version' node fetches the version number of the most recent n8n release from npm.
- Get Local n8n Version: The 'Get Local n8n version' node makes an HTTP request to your local n8n instance's API to retrieve its current version.
- If Node: The 'If' node compares the latest available version with your local version. It checks if
leftValue(latest version) isnotEqualstorightValue(local version). - SSH1 Node: If the 'If' node detects a version difference, the 'SSH1' node executes a command via SSH. It creates a file named
check_update.txtin then8n/directory on your server, indicating that an update is available. Ensure your SSH credentials andcwd(current working directory) are correctly configured.
Apps Used
Workflow JSON
{
"id": "db991b58-ea36-4522-af2e-10eff236a1c2",
"name": "Automate Your n8n Updates Seamlessly",
"nodes": 13,
"category": "DevOps",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: db991b58-ea36...
About the Author
Free n8n Workflows Official
System Admin
The official repository for verified enterprise-grade workflows.
Statistics
Related Workflows
Discover more workflows you might like
Automate Qualys Report Generation and Retrieval
Streamline your Qualys security reporting by automating the generation and retrieval of reports. This workflow ensures timely access to crucial security data without manual intervention.
Automated PR Merged QA Notifications
Streamline your QA process with this automated workflow that notifies your team upon successful Pull Request merges. Leverage AI and vector stores to enrich notifications and ensure seamless integration into your development pipeline.
Visualize Your n8n Workflows: Interactive Dashboard with Mermaid.js
Gain unparalleled visibility into your n8n automation landscape. This workflow transforms your n8n instance into a dynamic, interactive dashboard, leveraging Mermaid.js to visualize all your workflows in one accessible place.