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! π