Skip to content

Commit 7fb27ce

Browse files
authored
Add support for release_version, same as the CLI (#9)
1 parent fbf0176 commit 7fb27ce

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ steps:
4848
| `access_key` | Yes | | Linear pipeline access key for authentication |
4949
| `command` | No | `sync` | Command to run: `sync`, `complete`, or `update` |
5050
| `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`. |
51-
| `version` | No | | Release version identifier |
51+
| `version` | No | | Release version identifier (alias: `release_version`) |
5252
| `stage` | No | | Deployment stage such as `staging` or `production` (required for `update`) |
5353
| `include_paths` | No | | Filter commits by file paths (comma-separated globs for monorepos) |
5454
| `cli_version` | No | `v0.4.0` | Linear Release CLI version tag to install |

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ inputs:
2020
version:
2121
description: Release version identifier. Maps to CLI --release-version (e.g., "v1.2.3").
2222
required: false
23+
release_version:
24+
description: Alias for "version". Maps to CLI --release-version.
25+
required: false
2326
stage:
2427
description: Deployment stage such as "staging" or "production". Required when command is "update".
2528
required: false
@@ -63,5 +66,6 @@ runs:
6366
COMMAND: ${{ inputs.command }}
6467
INPUT_NAME: ${{ inputs.name }}
6568
INPUT_VERSION: ${{ inputs.version }}
69+
INPUT_RELEASE_VERSION: ${{ inputs.release_version }}
6670
INPUT_STAGE: ${{ inputs.stage }}
6771
INPUT_INCLUDE_PATHS: ${{ inputs.include_paths }}

run.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ if [[ -z "${GITHUB_OUTPUT:-}" ]]; then
2424
exit 1
2525
fi
2626

27+
# Resolve alias: "release_version" → "version"
28+
if [[ -z "${INPUT_VERSION:-}" && -n "${INPUT_RELEASE_VERSION:-}" ]]; then
29+
INPUT_VERSION="${INPUT_RELEASE_VERSION}"
30+
fi
31+
2732
COMMAND="${COMMAND:-sync}"
2833
case "$COMMAND" in
2934
sync|complete|update)

0 commit comments

Comments
 (0)