This workflow automates the backup of all workflows from your system to a Git repository hosted on Gitea. It runs on a scheduled trigger, fetching, encoding, and committing workflow data, ensuring seamless version control and disaster recovery.
📌 Quick Setup: Just update three global variables and configure authentication—no manual exports needed!
1️⃣ Scheduled Execution → Runs automatically at defined intervals.
2️⃣ Fetch Workflows → Uses the API to retrieve all workflows.
3️⃣ Process Workflows → Converts workflow data into a Git-friendly format.
4️⃣ Commit & Push to Git → Saves workflows in a Gitea repository.
Go to the Globals section in the workflow and update:
repo.url
→ https://your-gitea-instance.com
(Replace with your actual Gitea URL)repo.name
→ workflows
(Repository name where backups will be stored)repo.owner
→ octoleo
(Gitea account that owns the repository)📌 These three variables define where the workflows are stored.
Authorization
Bearer YOUR_PERSONAL_ACCESS_TOKEN
📌 Ensure there is a space after Bearer
before the token!
Attach the Gitea credentials to these three Git nodes:
📌 The workflow automatically checks for changes before committing updates.
✅ Automated Backups → No manual exports needed.
✅ Version Control → Easily track workflow changes.
✅ Simple Setup → Just configure globals & credentials.
✅ Secure → Uses token-based authentication.
💬 Have questions? Reach out on the forum! 🚀