- Automate the retrieval of workflow files from GitLab.
- Compare different versions of workflow files to identify changes.
- Save new or updated workflow files back to GitLab.
- Track the status of workflow files to manage updates effectively.
Trigger the workflow manually to start the process. Set global variables for repository details including owner, name, branch, and path. Retrieve all workflows from n8n and loop over each workflow. Get the corresponding file from GitLab and extract its content. Compare the retrieved file with the current workflow version. Determine the status of the file (new, same, or different) and take appropriate action. Save new or updated files back to GitLab as necessary.
- 1Import the workflow template into n8n.
- 2Configure GitLab and n8n credentials.
- 3Set the repository details in the Globals node.
- 4Run the workflow by clicking 'Test Workflow'.