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:
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.
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
tagConfigandbranchConfigwhen 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:
If the provider isn't connected yet, connect it in Runway first, under Organization settings → Integrations.
On the same page, open the provider and copy its Provider ID.
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.
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.
Spot changes made in Runway
There are two ways to see the changes made:
Export the app and diff it with the file in your repository.
Plan the file: any change in the plan will show the difference between the file and the app.
Last updated
Was this helpful?