ci: fix workflow stability by using standard actions

This commit is contained in:
Gan, Jimmy
2026-04-04 23:18:24 +08:00
parent 5d0735e803
commit 6bc81f409c
4 changed files with 25 additions and 23 deletions
+15 -10
View File
@@ -15,9 +15,14 @@ jobs:
steps:
- name: Checkout repository
run: |
git clone http://gitea:3000/jimmy/nas-tools.git .
git checkout ${{ github.sha }}
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
cache-dependency-path: 'dashboard/backend/requirements*.txt'
- name: Install dependencies
run: |
@@ -46,14 +51,14 @@ jobs:
steps:
- name: Checkout repository
run: |
git clone http://gitea:3000/jimmy/nas-tools.git .
git checkout ${{ github.sha }}
uses: actions/checkout@v4
- name: Install Node.js
run: |
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
apt-get install -y nodejs
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: 'dashboard/frontend/package-lock.json'
- name: Install dependencies
run: |