ideabrowser.com — find trending startup ideas with real demand
Try itnpx skills add https://github.com/rudrankriyam/app-store-connect-cli-skills --skill asc-workflowUse this skill when you need lane-style automation inside the CLI using:
asc workflow runasc workflow validateasc workflow listThis feature is best for deterministic automation that lives in your repo, is reviewable in PRs, and can run the same way locally and in CI.
--help to confirm flags and subcommands:
asc workflow --helpasc workflow run --helpasc workflow validate --helpasc workflow list --help.asc/workflow.jsonasc workflow validateasc workflow listasc workflow list --all (includes private helpers)asc workflow run --dry-run betaasc workflow run beta BUILD_ID:123456789 GROUP_ID:abcdef.asc/workflow.jsonasc workflow run --file ./path/to/workflow.json <name>// and /* ... */)stdout: structured JSON result (status, steps, durations)stderr: step command output, hook output, dry-run previewsasc workflow validate always prints JSON and returns non-zero when invalidThis enables machine-safe checks:
asc workflow validate | jq -e '.valid == true'
asc workflow run beta BUILD_ID:123 GROUP_ID:xyz | jq -e '.status == "ok"'
Top-level keys:
env: global defaultsbefore_all: command run once before stepsafter_all: command run once after successful stepserror: command run when any failure occursworkflows: named workflow mapWorkflow keys:
descriptionprivate (not directly runnable)envstepsStep forms:
"echo hello" -> run steprun: shell commandworkflow: call sub-workflowname: label for reportingif: conditional var namewith: env overrides for workflow-call steps onlyKEY:VALUE / KEY=VALUE)asc workflow run <name> [KEY:VALUE ...] supports both separators:
VERSION:2.1.0VERSION=2.1.0$VAR)..asc/workflow.json; pass them via CI secrets/env.asc workflow run also accepts core flags after the workflow name:
--dry-run--pretty--fileExamples:
asc workflow run beta --dry-runasc workflow run beta --file .asc/workflow.json BUILD_ID:123before_all runs once before step executionafter_all runs only when steps succeederror runs on failure (step failure, before/after hook failure)Main workflow run:
definition.env < workflow.env < CLI paramsSub-workflow call step ("workflow": "...", "with": {...}):
env defaultswith overrides all"workflow": "<name>" to call helper workflows."private": true for helper-only workflows.asc workflow list unless --all is usedif)"if": "VAR_NAME" on a step.VAR_NAME is truthy.1, true, yes, y, on (case-insensitive).if lookup:
os.Getenv(VAR_NAME)asc workflow run --dry-run <name> does not execute commands.stderr.bash -o pipefail -c when bash is available.sh -c when bash is unavailable.--confirm for destructive asc operations inside steps.{
"env": {
"APP_ID": "123456789",
"VERSION": "1.0.0"
},
"before_all": "asc auth status",
"after_all": "echo workflow_done",
"error": "echo workflow_failed",
"workflows": {
"beta": {
"description": "Distribute a build to a TestFlight group and notify",
"env": {
"GROUP_ID": ""
},
"steps": [
{
"name": "list_builds",
"run": "asc builds list --app $APP_ID --sort -uploadedDate --limit 5"
},
{
"name": "list_groups",
"run": "asc testflight groups list --app $APP_ID --limit 20"
},
{
"name": "add_build_to_group",
"if": "BUILD_ID",
"run": "asc builds add-groups --build $BUILD_ID --group $GROUP_ID"
},
{
"name": "notify",
"if": "SLACK_WEBHOOK",
"run": "echo sent_release_notice"
}
]
},
"release": {
"description": "Submit a version for App Store review",
"steps": [
{
"workflow": "sync-metadata",
"with": {
"METADATA_DIR": "./metadata"
}
},
{
"name": "submit",
"run": "asc submit create --app $APP_ID --version $VERSION --build $BUILD_ID --confirm"
}
]
},
"sync-metadata": {
"private": true,
"description": "Private helper workflow (callable only via workflow steps)",
"steps": [
{
"name": "migrate_validate",
"run": "echo METADATA_DIR_is_$METADATA_DIR"
}
]
}
}
}
# Validate and fail CI on invalid file
asc workflow validate | jq -e '.valid == true'
# Show discoverable workflows
asc workflow list --pretty
# Include private helpers
asc workflow list --all --pretty
# Preview a real run
asc workflow run --dry-run beta BUILD_ID:123 GROUP_ID:grp_abc
# Run with params and assert success
asc workflow run beta BUILD_ID:123 GROUP_ID:grp_abc | jq -e '.status == "ok"'