From da8a16c4168df25303fc56e47f2ae81399656495 Mon Sep 17 00:00:00 2001 From: Max Richter Date: Wed, 3 Apr 2024 17:17:10 +0200 Subject: [PATCH] feat: some shit --- .github/workflows/default.yaml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/default.yaml b/.github/workflows/default.yaml index df5130c..be89057 100644 --- a/.github/workflows/default.yaml +++ b/.github/workflows/default.yaml @@ -15,9 +15,24 @@ jobs: RUNNER_TOOL_CACHE: /toolcache runs-on: ubuntu-latest steps: + - name: Checkout + uses: actions/checkout@v3 - - name: Checkout code - uses: nschloe/action-cached-lfs-checkout@v1 + - name: Create LFS file list + run: git lfs ls-files --long | cut -d ' ' -f1 | sort > .lfs-assets-id + + - uses: https://gitea.com/actions/go-hashfiles@v0.0.1 + id: hash-lfs + with: + patterns: | + .lfs-assets-id + + - name: LFS Cache + uses: actions/cache@v3 + with: + path: .git/lfs/objects + key: ${{ runner.os }}-lfs-${{ steps.hash-lfs.outputs.hash }} + restore-keys: | - name: 📦 Install PNPM uses: pnpm/action-setup@v3