mirror of
https://github.com/extractions/setup-just
synced 2026-09-07 20:04:00 +00:00
Rename version input to just-version
This is technically a breaking change, but let's hope no one is actually using this action yet.
This commit is contained in:
@@ -28,10 +28,10 @@ jobs:
|
||||
- name: Run self
|
||||
uses: ./
|
||||
with:
|
||||
version: 0.5.10
|
||||
just-version: 0.4
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Check just version
|
||||
run: just --version | grep "^just v0.5.10$"
|
||||
run: just --version | grep "^just v0.4.5$"
|
||||
shell: bash
|
||||
|
||||
@@ -9,9 +9,9 @@ This GitHub Action will install the latest release of the
|
||||
|
||||
### Inputs
|
||||
|
||||
| Name | Required | Description | Type | Default |
|
||||
| --------- | -------- | -------------------------------------------------------- | ------ | ------- |
|
||||
| `version` | no | A valid semver specification for the version to install. | string | * |
|
||||
| Name | Required | Description | Type | Default |
|
||||
| -------------- | -------- | -------------------------------------------------------- | ------ | ------- |
|
||||
| `just-version` | no | A valid semver specification for the version to install. | string | * |
|
||||
|
||||
|
||||
### Basic example
|
||||
@@ -21,9 +21,9 @@ Add the following to your workflow.
|
||||
```yaml
|
||||
- uses: extractions/setup-just@v1
|
||||
with:
|
||||
version: 0.5
|
||||
just-version: 0.5
|
||||
env:
|
||||
# this is not required but will be prevent any rate limiting issues
|
||||
# this is not required but add it if you get any rate limiting issues
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
```
|
||||
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ branding:
|
||||
icon: 'play'
|
||||
color: 'blue'
|
||||
inputs:
|
||||
version:
|
||||
just-version:
|
||||
description: 'A valid semver specifier of the just version to install'
|
||||
runs:
|
||||
using: 'node12'
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -103,7 +103,7 @@ async function checkOrInstallTool(
|
||||
|
||||
async function main() {
|
||||
try {
|
||||
const version = core.getInput("version");
|
||||
const version = core.getInput("just-version");
|
||||
const target = getTarget();
|
||||
const cacheDir = await checkOrInstallTool("just", version, target);
|
||||
core.addPath(cacheDir);
|
||||
|
||||
Reference in New Issue
Block a user