fix: 修复 deploy 工作流缺少 Node.js 导致 checkout 失败的问题
This commit is contained in:
@@ -12,6 +12,11 @@ jobs:
|
||||
if: github.event_name == 'pull_request'
|
||||
runs-on: aliyun
|
||||
steps:
|
||||
- name: Setup Node.js
|
||||
run: |
|
||||
sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
||||
apk add --no-cache nodejs
|
||||
|
||||
- name: Checkout
|
||||
uses: "http://8.161.227.145:3000/huanghaosheng/checkout@releases/v4"
|
||||
|
||||
@@ -30,6 +35,11 @@ jobs:
|
||||
if: github.event_name == 'push'
|
||||
runs-on: aliyun
|
||||
steps:
|
||||
- name: Setup Node.js
|
||||
run: |
|
||||
sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
||||
apk add --no-cache nodejs
|
||||
|
||||
- name: Checkout
|
||||
uses: "http://8.161.227.145:3000/huanghaosheng/checkout@releases/v4"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user