From 1392bd88d3b97857a4cfc654566e253502d89c99 Mon Sep 17 00:00:00 2001 From: hustcer Date: Tue, 12 Sep 2023 07:32:15 +0800 Subject: [PATCH] ci skip --- .github/workflows/release-matrix.yaml | 2 +- .github/workflows/run-test.yaml | 4 ++-- README.md | 10 ++++------ README.zh-CN.md | 8 +++----- 4 files changed, 10 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release-matrix.yaml b/.github/workflows/release-matrix.yaml index 887b034..a17cfde 100644 --- a/.github/workflows/release-matrix.yaml +++ b/.github/workflows/release-matrix.yaml @@ -25,7 +25,7 @@ jobs: steps: - uses: actions/checkout@v4.0.0 - name: Setup nu@${{matrix.ver}} - uses: hustcer/setup-nu@v3.3 + uses: hustcer/setup-nu@v3.5 with: version: ${{matrix.ver}} env: diff --git a/.github/workflows/run-test.yaml b/.github/workflows/run-test.yaml index ec4d92b..675103d 100644 --- a/.github/workflows/run-test.yaml +++ b/.github/workflows/run-test.yaml @@ -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/checkout@v4.0.0 - name: Setup nu@latest - uses: hustcer/setup-nu@v3.3 + uses: hustcer/setup-nu@v3.5 with: version: v0.80 enable-plugins: true diff --git a/README.md b/README.md index 9bf57d5..2882c52 100644 --- a/README.md +++ b/README.md @@ -73,13 +73,11 @@ 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} @@ -87,7 +85,7 @@ To use modules in `Nu`, you can follow this example: 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 diff --git a/README.zh-CN.md b/README.zh-CN.md index c0bbdb8..cd6dda3 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -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}