-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add default github-token input support
- Loading branch information
Showing
10 changed files
with
21 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,7 +79,7 @@ To use modules in `Nu`, please refer to the following examples: | |
- name: Setup nu | ||
uses: hustcer/[email protected] | ||
with: | ||
version: 0.87.1 | ||
version: 0.90.1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Use Your Nu Modules | ||
|
@@ -96,7 +96,7 @@ You have to wrap the `nu` code in `nu -c ""`, and the nu version should be equal | |
- name: Setup nu | ||
uses: hustcer/[email protected] | ||
with: | ||
version: 0.87.1 | ||
version: 0.90.1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Use Your Nu Modules by Absolute Path | ||
|
@@ -115,7 +115,7 @@ Again, the nu version should be equal to or above `0.69`. | |
- name: Setup nu@latest | ||
uses: hustcer/[email protected] | ||
with: | ||
version: 0.87.1 | ||
version: 0.90.1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Prepare Nu Modules | ||
|
@@ -200,6 +200,7 @@ If this happens you can set the `GITHUB_TOKEN` environment variable. | |
| `check-latest` | no | Set to `true` if you want to use the latest version | bool | false | | ||
| `enable-plugins` | no | Set to `true` if you want to register the bundled plugins, Nu v0.69 and above is required | bool | false | | ||
| `features` | no | Available choice: `default` or `full`, and the `full` features will include the commands from `extra` and `dataframe`. This option support `Nu` since `v0.86` | string | `default` | | ||
| `github-token` | no | Your GitHub token or PAT token | string | `${{ github.token }}` | | ||
|
||
The semver specification is passed directly to NPM's [semver package](https://www.npmjs.com/package/semver). | ||
This GitHub Action will install the latest matching release. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,7 +74,7 @@ jobs: | |
- name: Setup nu | ||
uses: hustcer/[email protected] | ||
with: | ||
version: 0.87.1 | ||
version: 0.90.1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Use Your Nu Modules | ||
|
@@ -91,7 +91,7 @@ jobs: | |
- name: Setup nu | ||
uses: hustcer/[email protected] | ||
with: | ||
version: 0.87.1 | ||
version: 0.90.1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Use Your Nu Modules by Absolute Path | ||
|
@@ -110,7 +110,7 @@ jobs: | |
- name: Setup nu@latest | ||
uses: hustcer/[email protected] | ||
with: | ||
version: 0.87.1 | ||
version: 0.90.1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Prepare Nu Modules | ||
|
@@ -191,6 +191,7 @@ jobs: | |
| `check-latest` | 否 | 可以设置为 `true` 如果你想使用最新的 Nushell 版本 | bool | false | | ||
| `enable-plugins` | 否 | 可以设置为 `true` 如果你需要注册二进制包内的插件, 需要 Nu 版本 >= v0.69 | bool | false | | ||
| `features` | 否 | 可选项: `default`,`full`, 设置为 `full` 将包含 `extra` 和 `dataframe` 中的命令, 该选项支持 `Nu` `v0.86` 及以后版本 | string | `default` | | ||
| `github-token` | 否 | 你的 GitHub Token 或者 PAT token | string | `${{ github.token }}` | | ||
|
||
您在 `version` 字段指定的 **semver 版本** 会直接传递给 NPM 的 [semver 包](https://www.npmjs.com/package/semver)。此 GitHub Action 将安装最新的匹配版本。 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters