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 - 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
+5 -5
View File
@@ -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
View File
@@ -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'
+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() { 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);