Skip to content

Commit

Permalink
ci skip
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcer committed Sep 11, 2023
1 parent a638d61 commit 1392bd8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 14 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.3
uses: hustcer/setup-nu@v3.5
with:
version: ${{matrix.ver}}
env:
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.3)
name: test (${{matrix.os}}, setup-nu@v3.5)
steps:
- uses: actions/[email protected]
- name: Setup nu@latest
uses: hustcer/setup-nu@v3.3
uses: hustcer/setup-nu@v3.5
with:
version: v0.80
enable-plugins: true
Expand Down
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,21 +73,19 @@ jobs:
To use modules in `Nu`, you can follow this example:

```yaml
- name: Setup nu@latest
uses: hustcer/setup-nu@develop
- name: Setup nu
uses: hustcer/setup-nu@v3.5
with:
version: ${{matrix.ver}}
enable-plugins: true
version: 0.83
env:
ACTIONS_STEP_DEBUG: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Use Your Nu Modules
shell: nu {0}
run: |
nu -c "use nu/module.nu *; print (get-env 'ABC-XYZ' 'DEFAULT-ABC-XYZ')"
```

You have to wrap the `nu` code in `nu -c ""`, and the nu version should above `0.65`, it's not perfect yet, However, this is the only way I found works. Please tell me if you find a better way and PRs are welcomed.
You have to wrap the `nu` code in `nu -c ""`, and the nu version should be equal or above `0.65`, it's not perfect yet, However, this is the only way I found works. Please tell me if you found a better way and PRs are always welcomed.

#### Others

Expand Down
8 changes: 3 additions & 5 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,11 @@ jobs:
若想在 `Nu` 中使用模块, 可以参考如下示例:

```yaml
- name: Setup nu@latest
uses: hustcer/setup-nu@develop
- name: Setup nu
uses: hustcer/setup-nu@v3.5
with:
version: ${{matrix.ver}}
enable-plugins: true
version: 0.83
env:
ACTIONS_STEP_DEBUG: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Use Your Nu Modules
shell: nu {0}
Expand Down

0 comments on commit 1392bd8

Please sign in to comment.