n8n Workflow: Check and Update n8n Version This workflow automatically checks if the local n8n version is outdated and, if so, creates a file to signal an update is needed. --- π₯οΈ Working Environment - Operating System: Ubuntu 24.04 - n8n Installation: Docker container --- π Project Directory Structure n8n/ βββ checkupdate.txt βββ check-update.sh βββ compose.yml βββ updaten8n.cron --- π§Ύ File Descriptions checkupdate.txt Contains a single word: - true: Update is needed - false: No update requir

n8n Workflow: Check and Update n8n Version This workflow automatically checks if the local n8n version is outdated and, if so, creates a file to signal an update is needed. --- π₯οΈ Working Environment - Operating System: Ubuntu 24.04 - n8n Installation: Docker container --- π Project Directory Structure n8n/ βββ checkupdate.txt βββ check-update.sh βββ compose.yml βββ updaten8n.cron --- π§Ύ File Descriptions checkupdate.txt Contains a single word: - true: Update is needed - false: No update required --- check-update.sh Purpose: - Checks the contents of checkupdate.txt - If it contains true, executes update logic (currently a placeholder) - Resets checkupdate.txt to true --- updaten8n.cron Purpose: - Runs the check-update.sh script daily at 5:10 AM - Uses /bin/sh as the shell environment π§© n8n Workflow Breakdown 1. Schedule Trigger π - Purpose: Triggers the workflow every day at 5:00 AM - Node Type: Schedule Trigger --- 2. Get the latest n8n version π - Purpose: Fetches the latest version of n8n from npm - Endpoint: - Node Type: HTTP Request --- 3. Get Local n8n version π₯οΈ - Purpose: Retrieves the currently running n8n version - Endpoint: - Node Type: HTTP Request --- 4. If π - Purpose: Compares the local and latest versions - Condition: If not equal β update is needed --- 5. SSH1 π§Ύ - Purpose: Writes the result to a file on the host via SSH - Logic: Effect: Updates checkupdate.txt with "true" if an update is needed, "false" otherwise. π οΈ Setting up Crontab on Ubuntu 1. Register the cron job with: 2. Verify that your cron job is registered: β Result - 5:00 AM β n8n workflow checks versions and writes result to checkupdate.txt - 5:10 AM β Cron runs check-update.sh to respond to update flag
Download the workflow JSON file after purchase.
Open n8n β click the menu β Import from File.
Select the downloaded JSON and import.
Set up credentials for each node that requires them.
Click Execute Workflow to test, then activate.
Setup guide included
Purchase to unlock the full step-by-step guide
No reviews yet
Be the first to buy and share your experience.
Leave a review
Sign in to share your experience with this workflow.
Create a free account to purchase workflows.
Need help setting this up?
Book a 3-hour live setup session with an Agility consultant.