Skip to content

Commit 755d50b

Browse files
Add support for timeout input (#13)
* Add support for timeout input Passes the --timeout flag through to the Linear Release CLI, allowing users to configure how long the action waits for a command to complete. Generated with [Linear](https://linear.app/linear/issue/LIN-64455/support-timeout-flag-in-linear-release-action#agent-session-37fe688a) Co-authored-by: linear[bot] <44709815+linear[bot]@users.noreply.github.com> * Fix timeout input description to specify seconds Generated with [Linear](https://linear.app/linear/issue/LIN-64455/support-timeout-flag-in-linear-release-action#agent-session-37fe688a) Co-authored-by: linear[bot] <44709815+linear[bot]@users.noreply.github.com> * Update timeout description and document default of 60s Generated with [Linear](https://linear.app/linear/issue/LIN-64455/support-timeout-flag-in-linear-release-action#agent-session-37fe688a) Co-authored-by: linear[bot] <44709815+linear[bot]@users.noreply.github.com> * Fix table alignment in README Generated with [Linear](https://linear.app/linear/issue/LIN-64455/support-timeout-flag-in-linear-release-action#agent-session-37fe688a) Co-authored-by: linear[bot] <44709815+linear[bot]@users.noreply.github.com> --------- Co-authored-by: Axel Niklasson Yun <6113675+axelniklasson@users.noreply.github.com> Co-authored-by: linear[bot] <44709815+linear[bot]@users.noreply.github.com>
1 parent 1f1e65c commit 755d50b

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ steps:
5454
| `stage` | No | | Deployment stage such as `staging` or `production` (required for `update`) |
5555
| `include_paths` | No | | Filter commits by file paths (comma-separated globs for monorepos) |
5656
| `log_level` | No | | Log verbosity: `quiet` or `verbose`. Omit for default output. |
57+
| `timeout` | No | `60` | Maximum time in seconds to wait for the command to complete |
5758
| `cli_version` | No | `latest` | Linear Release CLI version tag to install |
5859

5960
`cli_version` defaults to `latest`, so the action automatically uses the newest CLI release. For reproducible builds, pin an exact tag (for example, `v0.5.0`). If stability is more important than automatic updates, prefer a pinned version.

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ inputs:
3232
log_level:
3333
description: Log verbosity. Use "quiet" for errors only or "verbose" for detailed progress. Omit for default output.
3434
required: false
35+
timeout:
36+
description: Maximum time in seconds to wait for the command to complete. Defaults to 60.
37+
required: false
3538
cli_version:
3639
description: Linear Release CLI version to install (e.g., "v0.5.0" or "latest").
3740
required: false
@@ -73,6 +76,7 @@ runs:
7376
INPUT_STAGE: ${{ inputs.stage }}
7477
INPUT_INCLUDE_PATHS: ${{ inputs.include_paths }}
7578
INPUT_LOG_LEVEL: ${{ inputs.log_level }}
79+
INPUT_TIMEOUT: ${{ inputs.timeout }}
7680

7781
- name: Cleanup CLI binary
7882
if: always()

run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ args=()
5353
[[ -n "${INPUT_VERSION:-}" ]] && args+=("--release-version=${INPUT_VERSION}")
5454
[[ -n "${INPUT_STAGE:-}" ]] && args+=("--stage=${INPUT_STAGE}")
5555
[[ -n "${INPUT_INCLUDE_PATHS:-}" ]] && args+=("--include-paths=${INPUT_INCLUDE_PATHS}")
56+
[[ -n "${INPUT_TIMEOUT:-}" ]] && args+=("--timeout=${INPUT_TIMEOUT}")
5657

5758
if [[ -n "${INPUT_LOG_LEVEL:-}" ]]; then
5859
case "$INPUT_LOG_LEVEL" in

0 commit comments

Comments
 (0)