From 50b13d2867bb2e9f8e9ad792d02eb21711825ea1 Mon Sep 17 00:00:00 2001 From: Minimata Date: Thu, 19 Jun 2025 14:03:03 +0200 Subject: [PATCH] fix: dichotomying --- action.yaml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/action.yaml b/action.yaml index 4c49e7e..ea39e0c 100644 --- a/action.yaml +++ b/action.yaml @@ -16,17 +16,17 @@ runs: with: lfs: false - - name: Create LFS file list - if: ${{ inputs.checkout-version == '3' }} - run: /usr/bin/git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id + #- name: Create LFS file list + # if: ${{ inputs.checkout-version == '3' }} + # run: /usr/bin/git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id - - name: Restore LFS cache - if: ${{ inputs.checkout-version == '3' }} - uses: actions/cache@v4 - id: lfs-cache - with: - path: .git/lfs - key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }} + #- name: Restore LFS cache + # if: ${{ inputs.checkout-version == '3' }} + # uses: actions/cache@v4 + # id: lfs-cache + # with: + # path: .git/lfs + # key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }} - name: Checkout LFS if: ${{ inputs.checkout-version == '3' }} @@ -41,6 +41,8 @@ runs: /usr/bin/git lfs fetch origin refs/remotes/origin/${{ gitea.ref_name }} /usr/bin/git lfs checkout + /usr/bin/git add . + /usr/bin/git reset --hard - name: Checkout if: ${{ inputs.checkout-version == '4' }}