Zum Inhalt springen
NEUMarktplatz und trig8n Agent: Verkaufen Sie, was Sie bauen, und erhalten Sie Pläne und Änderungen, die getestet sind, bevor Sie sie sehen. Neuigkeiten ansehen

Bibliothek / Code, Git & Entwicklertools

Code, Git & Entwicklertools

n8n-Workflows mit Slack-Benachrichtigungen in GitHub sichern

Bei Ausführung oder Aufruf durch einen anderen Workflow werden alle n8n-Workflows in GitHub gespeichert, nur neue oder geänderte committet und in Slack berichtet.

Was sie bewirkt

## Backup to GitHub This workflow will backup all instance workflows to GitHub every 24 hours. The files are saved into folders using YYYY/MM/ for the directory path and ID.json for the filename. The Repo Owner, Repo Name and Main folder are set using the Variables feature but can be replaced with the Config node in the subworkflow. The workflow runs calls itself to help reduce memory usage, Once the workflow has completed it will send an optional notification to Slack. ### Time to Run Tested with 1423 workflows on 1.44.1 it took under 30 minutes for the first run and under 12 minutes once the initial run is complete.

Die Schritte

  1. On clicking 'execute'
  2. Execute Workflow Trigger
  3. n8n
  4. Return
  5. Get File
  6. If file too large
  7. Merge Items
  8. isDiffOrNew
  9. Check Status
  10. Same file - Do nothing
  11. File is different
  12. File is new
  13. Create new file
  14. Edit existing file

Insgesamt 23 Schritte.

Ähnliche Automatisierungen