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:
Ross MacArthur
2020-05-03 13:59:00 +02:00
parent 2d295f385f
commit 7bd7066470
5 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -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
+5 -5
View File
@@ -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
View File
@@ -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'
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -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);