n8n update

Automated workflow for n8n that checks for the latest version every three days, pulls updates from Docker, and notifies via Telegram. It ensures your n8n instance is always up-to-date, streamlining maintenance and enhancing performance without manual intervention.

7/8/2025
27 nodes
Complex
aw45ve4sa5vbdnkzschedulecomplexsshschedule triggersticky notetelegramautomationadvancedcronapiintegrationlogicconditionalcommunicationbot
Categories:
Communication & MessagingSchedule TriggeredComplex Workflow
Integrations:
SshSchedule TriggerSticky NoteTelegram

Target Audience

  • DevOps Engineers: Those responsible for maintaining and updating n8n instances.
    - System Administrators: Individuals who manage server environments and need to ensure applications are up-to-date.
    - Automation Enthusiasts: Users who want to automate the process of checking and updating n8n versions.
    - Telegram Bot Developers: Developers who want to integrate notifications into their workflows for version updates.
  • Problem Solved

    This workflow automates the process of checking for the latest version of n8n and updating the Docker image if a new version is available. It ensures that users are always running the latest version, which can include important features, bug fixes, and security patches. This reduces manual intervention and the risk of running outdated software.

    Workflow Steps

  • Trigger: The workflow can be triggered either manually or on a schedule (every 3 days at 1 PM).
    - Set Default Variables: It initializes necessary variables such as the working directory and n8n container name.
    - Check Installed Version: The current version of n8n is fetched from the Docker container.
    - Fetch Latest Version: A request is made to the n8n GitHub repository to get the latest released version.
    - Compare Versions: The installed version is compared with the latest version.
    - Notification: If the versions match, a Telegram notification is sent to inform that n8n is up-to-date.
    - Approval for Update: If a new version is available, a Telegram message asks for user approval to proceed with the update.
    - Pull Latest Image: Upon approval, the latest n8n Docker image is pulled.
    - Update Docker Compose: The workflow pulls the latest services defined in the Docker Compose file and then starts the updated container.
    - Final Notification: A final Telegram message is sent to confirm that n8n has been successfully updated.
  • Customization Guide

  • Change Schedule: Users can modify the schedule in the Schedule Trigger node to run the workflow more or less frequently as needed.
    - Adjust Variables: Update the working-directory and n8n-container-name in the Set Default variable node to match the user's environment.
    - Modify Telegram Notifications: Customize the messages sent via Telegram to better fit the user's communication style.
    - Add Additional Checks: Users can add more nodes to perform extra checks or notifications as needed before or after the update process.
  • n8n update - N8N Workflow Directory