Vad*_*est 10 node.js github-actions
我收到警告
Node.js 12 actions are deprecated.
For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
Please update the following actions to use Node.js 16: ./
Run Code Online (Sandbox Code Playgroud)
我知道这是因为 v12 已被弃用并正在被删除,但我已将用法从 v12 更改为 v18,但我不明白为什么仍然收到此警告。它应该已经消失了。
我已阅读https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-javascript-actions上的 Actions 维护者文档
Pro*_*ton 10
我在使用 GitHub 操作部署 NextJS 应用程序时遇到了这个问题。
我的工作是这样的:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
Run Code Online (Sandbox Code Playgroud)
问题在于actions/checkout@v2已弃用的 。我所要做的就是升级到actions/checkout@v3. 所以我的工作接下来是这样的:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
Run Code Online (Sandbox Code Playgroud)
资源:示例:使用版本化操作
在编写问题时,我注意到https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-javascript-actions中有一个runs:. 我见过它,却忽略了它。
我不明白它位于/action.yml根目录中。
这是一个示例: https: //github.com/UnlyEd/github-action-await-vercel/blob/cee5b33a0725899c2a78be7d73819114f6aac745/action.yml#L17
改变这条线显然解决了这个问题。
| 归档时间: |
|
| 查看次数: |
10560 次 |
| 最近记录: |