hive-forge: ci-rerun takes repeatable --input key=value for workflow dispatch
The dispatch goes out as a raw API POST so a forge rejection of an input reaches the caller with its response body.
This commit is contained in:
parent
96cb25a040
commit
439cb28c8c
1 changed files with 378 additions and 19 deletions
|
|
@ -117,7 +117,7 @@ Deadline: hive-forge stops after HIVE_FORGE_DEADLINE seconds (default 900), prin
|
|||
* `attachment-get` — Download an attachment by UUID or URL. Saves to a temp file and prints the path (pass `-o -` to stream raw bytes to stdout)
|
||||
* `artifact-get` — Download a CI Actions artifact from a run (`<name> --run <n>`). Saves a zip, or pass `-o -` to stream to stdout
|
||||
* `ci-log` — Print a CI Actions run's job step logs (`--run <n> [--job i] [--step i]`)
|
||||
* `ci-rerun` — Re-run CI without an empty commit. Pass one of `--pr <n>`, `--run <n>`, or `--branch <name>`; `--workflow` defaults to `ci.yml`
|
||||
* `ci-rerun` — Re-run CI without an empty commit. Pass one of `--pr <n>`, `--run <n>`, or `--branch <name>`; `--workflow` defaults to `ci.yml`. `--input key=value` (repeatable) passes workflow inputs, for example one VM test: `--workflow vm-nightly.yml --input test=<name>`
|
||||
* `ci-runs` — List CI Actions runs, newest first (`--workflow`, `--branch`, `--limit`, `--page`) — the run numbers `ci-log`/`ci-rerun --run`/ `artifact-get --run` take
|
||||
|
||||
###### **Options:**
|
||||
|
|
@ -1398,7 +1398,7 @@ Print a CI Actions run's job step logs (`--run <n> [--job i] [--step i]`)
|
|||
|
||||
## `hive-forge ci-rerun`
|
||||
|
||||
Re-run CI without an empty commit. Pass one of `--pr <n>`, `--run <n>`, or `--branch <name>`; `--workflow` defaults to `ci.yml`
|
||||
Re-run CI without an empty commit. Pass one of `--pr <n>`, `--run <n>`, or `--branch <name>`; `--workflow` defaults to `ci.yml`. `--input key=value` (repeatable) passes workflow inputs, for example one VM test: `--workflow vm-nightly.yml --input test=<name>`
|
||||
|
||||
**Usage:** `hive-forge ci-rerun [OPTIONS]`
|
||||
|
||||
|
|
@ -1410,6 +1410,7 @@ Re-run CI without an empty commit. Pass one of `--pr <n>`, `--run <n>`, or `--br
|
|||
* `--workflow <WORKFLOW>` — Workflow file to run (default `ci.yml`). Ignored for `--run`, which uses the run's own workflow
|
||||
|
||||
Default value: `ci.yml`
|
||||
* `--input <KEY=VALUE>` — Workflow input for the dispatch, `key=value` (repeatable; the value may be empty or contain `=`). The workflow lists its inputs under `on.workflow_dispatch.inputs`; for an unknown input the forge's own error comes back unchanged. Example: `--workflow vm-nightly.yml --input test=k8s-swarm-images` runs one VM test instead of all of them
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue