You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-5Lines changed: 19 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ and will install and expose a specified version of the `kosli` CLI on the runner
11
11
12
12
## Usage
13
13
14
-
Setup the `kosli` CLI:
14
+
Setup the `kosli` CLI (installs the latest release by default):
15
15
16
16
```yaml
17
17
steps:
@@ -25,15 +25,29 @@ steps:
25
25
- name: setup-kosli-cli
26
26
uses: kosli-dev/setup-cli-action@v3
27
27
with:
28
-
version:
29
-
2.11.43
28
+
version: 2.11.43
29
+
```
30
+
31
+
To explicitly pin to the newest published release at runtime, pass `latest`:
32
+
33
+
```yaml
34
+
steps:
35
+
- name: setup-kosli-cli
36
+
uses: kosli-dev/setup-cli-action@v3
37
+
with:
38
+
version: latest
30
39
```
31
40
32
41
## Inputs
33
42
34
-
The actions supports the following inputs:
43
+
The action supports the following inputs:
44
+
45
+
- `version`: The version of `kosli` to install. Accepts a semver (e.g. `2.11.43`) or the alias `latest`, which resolves to the newest GitHub release of `kosli-dev/cli` at runtime. Defaults to `latest`.
46
+
- `github-token`: Token used to authenticate the GitHub API call that resolves `latest`. Defaults to `${{ github.token }}`; normally you do not need to set this.
47
+
48
+
## Outputs
35
49
36
-
- `version`: The version of `kosli` to install, defaulting to `2.11.43`
50
+
- `version`: The resolved `kosli` CLI version that was installed. When `version: latest` is used, this will contain the concrete semver (e.g. `2.12.0`) and can be referenced by later steps via `steps.<id>.outputs.version`.
37
51
38
52
## Example job
39
53
See [Kosli CLI documentation](https://docs.kosli.com/)
0 commit comments