Automated n8n Version Update and Notification
detail.loadingPreview
Workflow to automatically check for n8n updates, notify the user, and optionally update n8n.
About This Workflow
This n8n workflow automates the process of checking for new n8n releases. It compares the currently installed version with the latest version available on GitHub. If an update is found, it notifies the user via Telegram and prompts for confirmation before proceeding with the update. The update process involves pulling the new Docker image and restarting the n8n container using Docker Compose.
Key Features
- Automatic Version Checking: Regularly checks the n8n GitHub releases for the latest version.
- Installed Version Detection: Determines the currently running n8n version on the server.
- Version Comparison: Compares the installed version with the latest release.
- Telegram Notifications: Sends timely updates and prompts via Telegram.
- User Confirmation: Requires explicit approval before initiating an update.
- Automated Docker Updates: Utilizes
docker pullanddocker compose upfor seamless updates. - Configurable Schedule: Can be triggered manually or scheduled at regular intervals.
How To Use
- Set Default Variables: In the
Set Default variablenode, configure:working-directory: The directory containing yourdocker-compose.ymlfile.n8n-container-name: The name of your n8n Docker container.telegram-id: Your Telegram chat ID.
- Configure Triggers: Choose between the
When clicking ‘Test workflow’node for manual runs or theSchedule Triggernode to automate checks (e.g., every 3 days). - SSH Credentials: Ensure your
SSH Password accountcredentials are correctly set up for then8n-nodes-base.sshnodes. - Telegram Credentials: Configure your
Telegram accountcredentials for then8n-nodes-base.telegramnodes. - Review Commands: The SSH nodes execute commands like
sudo docker pull,sudo docker compose pull, andsudo docker compose up -d. Adjust these commands if your n8n setup differs. - Execution Flow:
- The workflow starts by fetching the latest release from GitHub (
Github HTTP Request) and checking the installed n8n version (check n8n installed version). - These versions are merged (
Merge Results) and compared (Comapre Two Input). - If versions differ:
- A Telegram message is sent to approve the update (
Telegram Approve). - Upon approval, images are pulled (
Pull n8n Image,docker compose pull). - The container is restarted (
docker compose up). - A success notification is sent (
Telegram Notif1).
- A Telegram message is sent to approve the update (
- If versions are the same:
- A Telegram message indicates no update is needed (
Telegram Notif).
- A Telegram message indicates no update is needed (
- The workflow starts by fetching the latest release from GitHub (
Apps Used
Workflow JSON
{
"id": "e699fcf1-638c-4dcd-a799-d76048431238",
"name": "Automated n8n Version Update and Notification",
"nodes": 7,
"category": "Operations",
"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: e699fcf1-638c...
About the Author
Crypto_Watcher
Web3 Developer
Automated trading bots and blockchain monitoring workflows.
Statistics
Related Workflows
Discover more workflows you might like
Universal CSV to JSON API Converter
Effortlessly transform CSV data into structured JSON with this versatile n8n workflow. Integrate it into any application as a custom API endpoint, supporting various input methods including file uploads and raw text.
Instant WooCommerce Order Notifications via Telegram
When a new order is placed on your WooCommerce store, instantly receive detailed notifications directly to your Telegram chat. Stay on top of your e-commerce operations with real-time alerts, including order specifics and a direct link to view the order.
On-Demand Microsoft SQL Query Execution
This workflow allows you to manually trigger and execute any SQL query against your Microsoft SQL Server database. Perfect for ad-hoc data lookups, administrative tasks, or quick tests, giving you direct control over your database operations.