Skip to content

Commit

Permalink
chore: Use hustcer/[email protected] in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcer committed Nov 4, 2023
1 parent 58f62ea commit 1b98f03
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
steps:
- uses: actions/[email protected]
- name: Setup nu@${{matrix.ver}}
uses: hustcer/setup-nu@v3.7
uses: hustcer/setup-nu@v3.8
with:
enable-plugins: false
version: ${{matrix.ver}}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ jobs:
os: [ubuntu-22.04, macos-latest, windows-latest]

runs-on: ${{ matrix.os }}
name: test (${{matrix.os}}, setup-nu@v3.7)
name: test (${{matrix.os}}, setup-nu@v3.8)
steps:
- uses: actions/[email protected]
- name: Setup nu@latest
uses: hustcer/setup-nu@v3.7
uses: hustcer/setup-nu@v3.8
with:
version: v0.80
enable-plugins: true
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ All notable changes to this project will be documented in this file.

### Miscellaneous Tasks

- Use hustcer/[email protected] in workflows
- Use `hustcer/[email protected]` in workflows

### Deps

Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Then you can set the command you want to run in the following steps, and don't f
to make the commands be executed by `nu`:

```yaml
- uses: hustcer/setup-nu@v3.7
- uses: hustcer/setup-nu@v3.8
with:
version: "0.80" # Don't use 0.80 here, as it was a float number and will be convert to 0.8, you can use v0.80/0.80.0 or '0.80'
- run: print $'Nu version info:(char nl)'; version
Expand Down Expand Up @@ -77,7 +77,7 @@ To use modules in `Nu`, please refer to the following examples:

```yaml
- name: Setup nu
uses: hustcer/setup-nu@v3.7
uses: hustcer/setup-nu@v3.8
with:
version: 0.86
env:
Expand All @@ -94,7 +94,7 @@ You have to wrap the `nu` code in `nu -c ""`, and the nu version should be equal

```yaml
- name: Setup nu
uses: hustcer/setup-nu@v3.7
uses: hustcer/setup-nu@v3.8
with:
version: 0.86
env:
Expand All @@ -113,7 +113,7 @@ Again, the nu version should be equal to or above `0.69`.

```yaml
- name: Setup nu@latest
uses: hustcer/setup-nu@v3.7
uses: hustcer/setup-nu@v3.8
with:
version: 0.86
env:
Expand All @@ -140,7 +140,7 @@ They are not perfect yet, but they do work. BTW: Please tell me if you found a b
`Nushell` is currently in active development, if you want to use the latest features it's also available by set the version to `nightly`, just as below:

```yaml
- uses: hustcer/setup-nu@v3.7
- uses: hustcer/setup-nu@v3.8
with:
version: nightly # Will download and setup the latest nightly version of Nushell
- run: print $'Nu version info:(char nl)'; version
Expand Down Expand Up @@ -172,7 +172,7 @@ If you want to use the latest version of nushell you can specify this by set `ch
the latest version:
```yaml
- uses: hustcer/setup-nu@v3.7
- uses: hustcer/setup-nu@v3.8
with:
check-latest: true
- run: print $'Nu version info:(char nl)'; version
Expand All @@ -185,7 +185,7 @@ workflow has to make requests to GitHub API in order to list available releases.
If this happens you can set the `GITHUB_TOKEN` environment variable.

```yaml
- uses: hustcer/setup-nu@v3.7
- uses: hustcer/setup-nu@v3.8
with:
version: "0.80"
env:
Expand Down
14 changes: 7 additions & 7 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
在大多数情况下,你只需要在工作流程中通过 `version` 字段指定要使用的 Nushell 的版本即可。比如下面的例子将会安装 [Nushell](https://github.com/nushell/nushell)`v0.80`版本。然后你可以在后续步骤中配置你想运行的命令,最后别忘了设置`shell: nu {0}`以使命令被`nu`执行:

```yaml
- uses: hustcer/setup-nu@v3.7
- uses: hustcer/setup-nu@v3.8
with:
version: "0.80" # 不要使用 0.80, 它会被认为是一个浮点数并转换为 0.8, 你可以使用 v0.80/0.80.0 或者 '0.80'(加了引号变成字符串)
- run: print $'Nu version info:(char nl)'; version
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:

```yaml
- name: Setup nu
uses: hustcer/setup-nu@v3.7
uses: hustcer/setup-nu@v3.8
with:
version: 0.86
env:
Expand All @@ -89,7 +89,7 @@ jobs:

```yaml
- name: Setup nu
uses: hustcer/setup-nu@v3.7
uses: hustcer/setup-nu@v3.8
with:
version: 0.86
env:
Expand All @@ -108,7 +108,7 @@ jobs:

```yaml
- name: Setup nu@latest
uses: hustcer/setup-nu@v3.7
uses: hustcer/setup-nu@v3.8
with:
version: 0.86
env:
Expand All @@ -135,7 +135,7 @@ jobs:
`Nushell` 目前正处于活跃开发期,如果你想使用最新的特性也可以通过将版本设置为 `nightly` 获得,比如下面的例子:

```yaml
- uses: hustcer/setup-nu@v3.7
- uses: hustcer/setup-nu@v3.8
with:
version: nightly # Will download and setup the latest nightly version of Nushell
- run: print $'Nu version info:(char nl)'; version
Expand Down Expand Up @@ -165,7 +165,7 @@ jobs:
如果你想使用最新版本的 Nushell,你可以通过设置 `check-latest` 为 `true` 来做到(它与`version: '*'`配置的效果相同,但更易读)。例如,以下将会安装最新版本的 Nushell:
```yaml
- uses: hustcer/setup-nu@v3.7
- uses: hustcer/setup-nu@v3.8
with:
check-latest: true
- run: print $'Nu version info:(char nl)'; version
Expand All @@ -176,7 +176,7 @@ jobs:
在极少数情况下,你可能会看到速率限制之类的错误,这是因为这个工作流程必须向 GitHub API 发出请求,以便查询可用的 Nushell 版本。如果发生这种情况,你可以通过设置 `GITHUB_TOKEN` 环境变量来避免该问题:

```yaml
- uses: hustcer/setup-nu@v3.7
- uses: hustcer/setup-nu@v3.8
with:
version: "0.80"
env:
Expand Down

0 comments on commit 1b98f03

Please sign in to comment.