Skip to content

Commit

Permalink
Troubleshooting LFS file caching
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Dec 27, 2023
1 parent 57ec51e commit 7901b76
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/build_debos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7901b76

Please sign in to comment.