diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 8d7b75a..dafcee1 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -24,13 +24,12 @@ jobs: steps: - name: Check out exact commit - uses: actions/checkout@v4 - - - name: Use Node.js 24 - uses: actions/setup-node@v4 - with: - node-version: 24 - cache: npm + run: | + git init . + git remote add origin https://git.tkmind.cn/tkmind/memind.git + git fetch --depth=1 origin "${{ gitea.sha }}" + git checkout --detach FETCH_HEAD + test "$(git rev-parse HEAD)" = "${{ gitea.sha }}" - name: Install locked dependencies run: npm ci