Skip to content

docs: Encourage to use v3 by updating examples in readme #573

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ workflows.

| Action | Use | Description |
| :------------ | :------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------- |
| `install` | `asdf-vm/actions/install@v2` | Installs `asdf` & tools in `.tool-versions`.<br>Plugins fetched from [asdf-vm/asdf-plugins](https://github.com/asdf-vm/asdf-plugins) |
| `setup` | `asdf-vm/actions/setup@v2` | Only install `asdf` CLI. |
| `plugins-add` | `asdf-vm/actions/plugins-add@v2` | Only install plugins, not tools. |
| `plugin-test` | `asdf-vm/actions/plugin-test@v2` | Plugin author test automation. |
| `install` | `asdf-vm/actions/install@v3` | Installs `asdf` & tools in `.tool-versions`.<br>Plugins fetched from [asdf-vm/asdf-plugins](https://github.com/asdf-vm/asdf-plugins) |
| `setup` | `asdf-vm/actions/setup@v3` | Only install `asdf` CLI. |
| `plugins-add` | `asdf-vm/actions/plugins-add@v3` | Only install plugins, not tools. |
| `plugin-test` | `asdf-vm/actions/plugin-test@v3` | Plugin author test automation. |

<!-- TOC -->
* [Usage](#usage)
Expand All @@ -34,7 +34,7 @@ workflows.
```yaml
steps:
- name: Install asdf & tools
uses: asdf-vm/actions/install@v2
uses: asdf-vm/actions/install@v3
```

To avoid breaking changes, use the full [Semantic Version](https://semver.org/)
Expand All @@ -45,9 +45,9 @@ steps:
# Reference a specific commit (most strict, for the supply-chain paranoid)
- uses: asdf-vm/actions/install@2368b9d
# Reference a semver major version only (GitHub recommended)
- uses: asdf-vm/actions/install@v2
- uses: asdf-vm/actions/install@v3
# Reference a semver version of a release (recommended)
- uses: asdf-vm/actions/install@v2.2.0
- uses: asdf-vm/actions/install@v3.0.2
# Reference a branch (most dangerous)
- uses: asdf-vm/actions/install@master
```
Expand Down Expand Up @@ -76,7 +76,7 @@ Installs `asdf` & tools in `.tool-versions`. Plugins fetched from

```yaml
steps:
- uses: asdf-vm/actions/install@v2
- uses: asdf-vm/actions/install@v3
```

<!-- TODO(jthegedus): capture action.yml options in a markdown table here. Show usage examples for each option. -->
Expand All @@ -89,7 +89,7 @@ Plugin author test automation

```yaml
steps:
- uses: asdf-vm/actions/plugin-test@v2
- uses: asdf-vm/actions/plugin-test@v3
with:
command: my_tool --version
```
Expand All @@ -107,7 +107,7 @@ Only install `asdf` CLI.

```yaml
steps:
- uses: asdf-vm/actions/setup@v2
- uses: asdf-vm/actions/setup@v3
```

<!-- TODO(jthegedus): capture action.yml options in a markdown table here. Show usage examples for each option. -->
Expand All @@ -123,7 +123,7 @@ Only install plugins, not tools.

```yaml
steps:
- uses: asdf-vm/actions/plugins-add@v2
- uses: asdf-vm/actions/plugins-add@v3
```

<!-- TODO(jthegedus): capture action.yml options in a markdown table here. Show usage examples for each option. -->
Expand All @@ -135,7 +135,7 @@ See [action.yml](plugins-add/action.yml) inputs.
### Full Example Workflow

This example workflow demonstrates how to use the Install Action:
`asdf-vm/actions/install@v2`. It is taken from the
`asdf-vm/actions/install@v3`. It is taken from the
[asdf-vm/asdf-plugin-template](https://github.com/asdf-vm/asdf-plugin-template)
repository.

Expand All @@ -160,7 +160,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: asdf-vm/actions/install@v2
- uses: asdf-vm/actions/install@v3
- run: scripts/lint.bash
# script runs Shellcheck, Shfmt etc installed by previous action

Expand Down Expand Up @@ -197,7 +197,7 @@ jobs:
image: ${{ matrix.container }}

steps:
- uses: asdf-vm/actions/plugin-test@v2
- uses: asdf-vm/actions/plugin-test@v3
with:
command: my_tool --version
```