Export package and upload to GitHub

Recipe ToolsMarketingDeveloper ToolAPI Integration

What it does

When a scheduled time arrives, this automation exports a package and polls until the export completes. Once ready, it downloads the package and uploads the file to GitHub so the team has a versioned backup.

Who it's for

Engineering teams who need automated backups of integration packages in version control.

How teams use this

Back up packages on a daily schedule

Export and upload the package every day at a set time so the team always has a recent backup in GitHub without manual steps.

Archive packages before a major release

Run the export before deploying changes so the current state is saved to GitHub. Use a manual button instead of the clock to start on demand.

Store packages in multiple repositories

Add a second GitHub upload step to push the package to a backup repository as well. This requires only an extra upload with a different repository target.

How it works

  1. Run on a schedule. At the specified interval, this automation starts the export process so packages are backed up regularly without manual work.
  2. Start the package export. Call the export endpoint via Rest to begin packaging the integration. The system returns a job ID to track progress.
  3. Poll the export status. Check the package status via Rest at intervals until the export finishes. If not complete, the automation waits and checks again.
  4. Download the completed package. Once the export status shows completed, download the package file via Rest so it is ready to upload to GitHub.
  5. Upload to GitHub. Push the downloaded package file into the GitHub repository so the team has a versioned backup of the integration.