Kütüphane / Kod, Git ve Geliştirici Araçları
Kod, Git ve Geliştirici Araçları
n8n iş akışlarını n8n API'si aracılığıyla GitHub deposundaki dosyalara yedekle
Başka bir iş akışı tarafından çağrıldığında, n8n API'si üzerinden bir iş akışını alır, JSON'a dönüştürür ve GitHub'da eşleşen dosyayı oluşturur veya günceller.
Ne yapar
## Push Git ### How it works This workflow is triggered by another n8n workflow and receives or normalizes a workflow ID. It fetches that workflow from n8n, keeps only the properties needed for version control, converts the result into a JSON file, then checks GitHub for the corresponding file. Depending on whether the file exists and has changes, it either creates a new GitHub file or updates the existing one. ### Setup steps - Configure the n8n credentials/permissions so the workflow can read workflows by ID. - Configure the GitHub credentials on the GitHub nodes with access to the target repository and branch. - Set the expected workflow ID input used by the trigger and confirm the file path/name conventions in the GitHub create, read, and edit nodes. - Verify the filtered workflow properties match what should be committed to Git. ### Customization You can adjust the filtered fields, JSON file naming/path, target repository/branch, and the modification condition to change what gets pushed and when.
Adımlar
- Retrieve Workflow Data
- Create GitHub File
- Edit GitHub File
- Check for Modifications
- Set Workflow Properties
- Workflow Execution Trigger
- Initialize Workflow ID
- Fetch GitHub Workflow File
- Convert to JSON File Format
Benzer otomasyonlar
Kod, Git ve Geliştirici AraçlarıSync a GitHub integration catalog from GitHub to StudioCMS pages33 adımKod, Git ve Geliştirici Araçların8n API'si üzerinden GitHub yedeğinden n8n kimlik bilgilerini geri yükleyin8 adımKod, Git ve Geliştirici Araçların8n İş Akışlarını GitHub'dan Geri Yükleme13 adımKod, Git ve Geliştirici Araçların8n İş Akışlarını GitHub'dan Geri Yükle, Mevcut Olanları Atla12 adım