下面这个很简单的 github workflow 清单文件
name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build-test:
runs-on: ubuntu-latest
container: mcr.microsoft.com/dotnet/sdk:8.0
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: dotnet build -c Release
- name: Test
run: dotnet test -c Release
运行时却出现下面的警告
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
请问如何消除这个警告?
把 actions/checkout@v3
改成 actions/checkout@v4
就可以了