diff --git a/README.md b/README.md index 0ba4666..9f674bf 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ steps: | `access_key` | Yes | | Linear pipeline access key for authentication | | `command` | No | `sync` | Command to run: `sync`, `complete`, or `update` | | `name` | No | | Custom release name for `sync`. Continuous pipelines: used on create. Scheduled pipelines: used only when `sync` creates a release; existing release names are preserved. Ignored (with warning) for `complete` and `update`. | -| `version` | No | | Release version identifier | +| `version` | No | | Release version identifier (alias: `release_version`) | | `stage` | No | | Deployment stage such as `staging` or `production` (required for `update`) | | `include_paths` | No | | Filter commits by file paths (comma-separated globs for monorepos) | | `cli_version` | No | `v0.4.0` | Linear Release CLI version tag to install | diff --git a/action.yml b/action.yml index e4347b1..a974076 100644 --- a/action.yml +++ b/action.yml @@ -20,6 +20,9 @@ inputs: version: description: Release version identifier. Maps to CLI --release-version (e.g., "v1.2.3"). required: false + release_version: + description: Alias for "version". Maps to CLI --release-version. + required: false stage: description: Deployment stage such as "staging" or "production". Required when command is "update". required: false @@ -63,5 +66,6 @@ runs: COMMAND: ${{ inputs.command }} INPUT_NAME: ${{ inputs.name }} INPUT_VERSION: ${{ inputs.version }} + INPUT_RELEASE_VERSION: ${{ inputs.release_version }} INPUT_STAGE: ${{ inputs.stage }} INPUT_INCLUDE_PATHS: ${{ inputs.include_paths }} diff --git a/run.sh b/run.sh index e67eb65..1b983e2 100644 --- a/run.sh +++ b/run.sh @@ -24,6 +24,11 @@ if [[ -z "${GITHUB_OUTPUT:-}" ]]; then exit 1 fi +# Resolve alias: "release_version" → "version" +if [[ -z "${INPUT_VERSION:-}" && -n "${INPUT_RELEASE_VERSION:-}" ]]; then + INPUT_VERSION="${INPUT_RELEASE_VERSION}" +fi + COMMAND="${COMMAND:-sync}" case "$COMMAND" in sync|complete|update)