For the complete documentation index, see llms.txt. This page is also available as Markdown.

Examples

These examples walk through common changes, like creating an app, adding a destination, or setting up your CI to plan and apply the file. Each one is shown as a change to an exported file: lines starting with + are added, lines starting with - are removed, and the rest show where the change goes.

Once you've made a change:

  1. Plan the file

  2. Review the changes

  3. Apply the plan through the public API or MCP

For what each field does, see the File reference.

Examples

Create an app

The easiest way to create an app is to start from one that's already set up the way you want. Export it, remove app.id, and give the new app its name:

The new app gets everything else in the file: its destinations, integrations, steps, automations, notifications and so on. Keys from the export, like $ci, become the new app's keys too.

Check notification mentions and checklist owners before planning. People who will not be members of the new app can't be mentioned or own items there.

Integrations must already be connected via Runway's UI prior to referencing an integration with Configuration as code. Review Connect an integration for more details.

Plan the file, then apply it. Once the apply finishes, the plan's appId is the new app's ID.

Starting from scratch

Without an app to start from, write the file yourself. A new app starts with no steps, so the file lists every step, the destinations each one serves, and the order they show in. The app's platform comes from its destinations. This is the smallest iOS app:

For an Android app, change the destination:

For an app with both, start with one platform and add the other in the same file. Reference Add a destination for more details.

Any configurations the file leaves out will receive Runway's defaults for a new app. You can add integrations, automations, notifications and more to the same file, or apply them later with app.id set.

Add a destination

Add the destination, a step of each type it needs, and add it to the shared steps that should serve it, like kickoff and CI. This adds Android to an existing iOS Flightpath:

  • The release step's store integration must match the destination's appStoreType. To find a provider's value, export an app that already uses it.

  • If the destination is missing a step type it needs, the plan will error and tell you which step type is missing.

  • New steps need a tagConfig and branchConfig when the other steps of their type have one. Copy them from those steps.

Remove a destination

Remove the destination, the steps that only serve it, and its place in the shared steps and the step graph. This undoes the example above, shortened to the release step: remove the other Android steps the same way.

A shared step can't be left with no destination: remove it too, or give it another one.

Add a step

CI, beta testing, regression testing and approvals steps can be added to an existing app. This adds a beta testing step that uses the CI step's builds:

Set the new step's settings on a later apply, once it exists.

Remove or move a step

Remove the step from flightpath.steps and from stepGraph, and anything that points at it in the same file, like another step's upstreamCIStep or an automation's requiredSteps:

The step's checklist items, automations and notification overrides are removed with it. To reorder steps instead, move CI, beta testing, regression testing or approvals steps within stepGraph. Other steps stay where they are.

Connect an integration

This connects GitHub Actions as the CI step's build system:

  1. If the provider isn't connected yet, connect it in Runway first, under Organization settings → Integrations.

  2. On the same page, open the provider and copy its Provider ID.

  3. Add the integration with its type, the provider ID and its settings, and list it on the steps that use it.

Your editor's autocomplete lists each integration type's settings, and planning tells you which ones are required. For values that are IDs, like workflowId, the easiest way to find them is to set the integration up once in Runway and export the app.

To switch providers, remove the old integration and add the new one in the same file. Certain integrations, such as version control, only allow you to connect and configure one type.

Customize an automation only for hotfixes

This releases two days after submission for most release types, but releases hotfixes as soon as they pass review:

A trigger set to null is turned off. For timing: onTime, leave out the relative* offsets.

Overrides are written whole: anything an override leaves out is off or follows the automation, not what the override had before. To go back to the automation's own values for hotfixes, remove the hotfix override.

Send a notification to another channel for one step

This sends "New build available" to a different channel for the beta testing step, and turns it off for the CI step:

CI/CD pipeline

Keep your configuration file in your repository, as runway.yaml, and let your CI plan and apply it, so every change to your app's setup goes through a pull request.

This GitHub Actions workflow plans the file on every pull request that changes it, so you can review the changes in the job's log, and apply those changes once the pull request is merged. Save it as .github/workflows/runway.yml, add your API key as the RUNWAY_API_KEY secret, and set your organization ID as the RUNWAY_ORG_ID variable.

If someone changes the app in Runway between the plan and the apply, applying is refused with a 409. Re-run the job: the new plan includes their change, so you'll see if your file undoes it.

Spot changes made in Runway

There are two ways to see the changes made:

  1. Export the app and diff it with the file in your repository.

  2. Plan the file: any change in the plan will show the difference between the file and the app.

Last updated

Was this helpful?