mirror of
https://github.com/extractions/setup-just
synced 2026-09-14 20:13:55 +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
|
- name: Run self
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
version: 0.5.10
|
just-version: 0.4
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Check just version
|
- name: Check just version
|
||||||
run: just --version | grep "^just v0.5.10$"
|
run: just --version | grep "^just v0.4.5$"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ This GitHub Action will install the latest release of the
|
|||||||
|
|
||||||
### Inputs
|
### Inputs
|
||||||
|
|
||||||
| Name | Required | Description | Type | Default |
|
| Name | Required | Description | Type | Default |
|
||||||
| --------- | -------- | -------------------------------------------------------- | ------ | ------- |
|
| -------------- | -------- | -------------------------------------------------------- | ------ | ------- |
|
||||||
| `version` | no | A valid semver specification for the version to install. | string | * |
|
| `just-version` | no | A valid semver specification for the version to install. | string | * |
|
||||||
|
|
||||||
|
|
||||||
### Basic example
|
### Basic example
|
||||||
@@ -21,9 +21,9 @@ Add the following to your workflow.
|
|||||||
```yaml
|
```yaml
|
||||||
- uses: extractions/setup-just@v1
|
- uses: extractions/setup-just@v1
|
||||||
with:
|
with:
|
||||||
version: 0.5
|
just-version: 0.5
|
||||||
env:
|
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 }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ branding:
|
|||||||
icon: 'play'
|
icon: 'play'
|
||||||
color: 'blue'
|
color: 'blue'
|
||||||
inputs:
|
inputs:
|
||||||
version:
|
just-version:
|
||||||
description: 'A valid semver specifier of the just version to install'
|
description: 'A valid semver specifier of the just version to install'
|
||||||
runs:
|
runs:
|
||||||
using: 'node12'
|
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() {
|
async function main() {
|
||||||
try {
|
try {
|
||||||
const version = core.getInput("version");
|
const version = core.getInput("just-version");
|
||||||
const target = getTarget();
|
const target = getTarget();
|
||||||
const cacheDir = await checkOrInstallTool("just", version, target);
|
const cacheDir = await checkOrInstallTool("just", version, target);
|
||||||
core.addPath(cacheDir);
|
core.addPath(cacheDir);
|
||||||
|
|||||||
Reference in New Issue
Block a user