diff --git a/.github/workflows/build_debos.yml b/.github/workflows/build_debos.yml index ae5557794..304d26868 100644 --- a/.github/workflows/build_debos.yml +++ b/.github/workflows/build_debos.yml @@ -24,17 +24,27 @@ jobs: REQUEST_REF=${{ github.event.inputs.debos_branch }} echo "::set-output name=debos::${REQUEST_REF:-${DEFAULT_REF}}" - name: Checkout Debos Repository - uses: nschloe/action-cached-lfs-checkout@v1 + uses: actions/checkout@v3 with: ref: ${{ steps.branch.outputs.debos }} -# lfs: True + lfs: True repository: NeonGeckoCom/neon_debos path: action/neon_debos -# - name: Ensure LFS files are pulled -# run: | -# cd action/neon_debos -# git lfs pull -# cd ../.. + + - name: Create LFS file list + run: git lfs ls-files -l action/neon_debos | cut -d' ' -f1 | sort > .lfs-assets-id + - name: Restore LFS cache + uses: actions/cache@v2 + id: lfs-cache + with: + path: action/neon_debos/.git/lfs + key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}-v1 + - name: Ensure LFS files are pulled + run: | + cd action/neon_debos + git lfs pull + cd ../.. + - name: Export keys for image build run: | mkdir -p action/neon_debos/overlays/80-google-json-overlay/home/neon/.local/share/neon