Block 1 - Get Local n8n version
- Type / Role
- n8n-nodes-base.httpRequest - httpRequest
- Config choices
- Version 4.2
This workflow is provided as-is. Please review and test before using in production.
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 Environm...
n8n-nodes-base.httprequest, n8n-nodes-base.scheduletrigger, n8n-nodes-base.ssh, n8n-nodes-base.if
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Weilun.
Original n8n.io sourceThis workflow automatically checks if the local n8n version is outdated and, if so, creates a file to signal an update is needed.
n8n/ βββ check_update.txt βββ check-update.sh βββ compose.yml βββ update_n8n.cron
check_update.txtContains a single word:
true: Update is needed false: No update requiredcheck-update.sh#!/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
if grep -q "true" /home/sysadmin/n8n/check_update.txt; then
# Place your update logic here
echo "Update needed - please insert update logic"
echo true > /home/sysadmin/n8n/check_update.txt
fi
Purpose:
check_update.txttrue, executes update logic (currently a placeholder)check_update.txt to trueupdate_n8n.cronSHELL=/bin/sh
10 5 * * * /bin/sh /home/sysadmin/n8n/check-update.sh
Purpose:
check-update.sh script daily at 5:10 AM/bin/sh as the shell environmenthttps://registry.npmjs.org/n8n/latest http://192.168.100.18:5678/rest/settings echo "{{ $('If').params.conditions ? 'false' : 'true' }}" > check_update.txt
Effect: Updates check_update.txt with "true" if an update is needed, "false" otherwise.
crontab update_n8n.cron
crontab -l
check_update.txt check-update.sh to respond to update flagThis catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Automatically update n8n version |
|---|---|
| Complexity | intermediate |
| Nodes | 5 |
| Categories | DevOps |
| Author | Weilun |
| Published | 23 May 2025 |
Use the JSON export at /data/workflows/4335/4335.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
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 Environm...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your DevOps use case.