我的Blog是基于一个特别的方法来构建的,在之前的这篇Blog中详述了我的做法:
2022-05-12 以Obsidian为中心的Blog写作
今天发布Blog,看到Action运行有两个警告,可能也有一阵子了,一直没有注意:
1
2
3
| 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: actions/checkout@v2
The ubuntu-18.04 environment is deprecated, consider switching to ubuntu-20.04(ubuntu-latest), or ubuntu-22.04 instead. For more details see https://github.com/actions/virtual-environments/issues/6002
|
Node.js 12
和ubuntu-18.04
过时了,需要升级,具体的调整如下:
1
2
| runs-on: ubuntu-18.04 -> runs-on: ubuntu-22.04
actions/checkout@v2 -> actions/checkout@v3
|
另外,关于tweet的引用也有警告出现,语法发生了变化:
Update Twitter shortcode oEmbed endpoint · gohugoio/hugo@0cc39af (github.com)
1
2
| {\{< tweet 1453110110599868418 >}} --> works, throws warning, deprecate at some point
{\{< tweet user="SanDiegoZoo" id="1453110110599868418" >}} --> new syntax
|
虽然当前还是可以使用的,但不一定哪天就取消了,顺手修订一下前面一些引用的格式。