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
+4 -7
View File
@@ -18,13 +18,10 @@ jobs:
- /var/packages/ContainerManager/target/usr/bin/docker:/usr/bin/docker
- /volume1/docker/nas-dashboard:/nas-dashboard
steps:
- name: Checkout exact commit
run: |
set -euo pipefail
git init .
git remote add origin http://gitea:3000/jimmy/nas-tools.git
git fetch --depth 1 origin "$GITHUB_SHA"
git checkout --detach FETCH_HEAD
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Warm mirror cache for base images
run: |
set -u