fix: better handling of lfs

This commit is contained in:
silver 2025-05-15 08:25:13 +01:00
parent 3432122a73
commit 1492379094
Signed by: silver
GPG key ID: 36F93D61BAD3FD7D

View file

@ -16,6 +16,15 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
token: ${{ secrets.PIPELINE_TOKEN }} token: ${{ secrets.PIPELINE_TOKEN }}
- name: "Get LFS objects"
uses: https://forgejo.skynet.ie/Skynet/actions/get_lfs@v3
with:
repository: ${{ gitea.repository }}
ref_name: ${{ gitea.ref_name }}
- name: Get all LFS objects
run: |
# Pull in all objects for all branches
git lfs fetch --all
- name: setup git config - name: setup git config
run: | run: |
# setup the username and email. I tend to use 'GitHub Actions Bot' with no email by default # setup the username and email. I tend to use 'GitHub Actions Bot' with no email by default
@ -30,6 +39,7 @@ jobs:
# need to convert "'refs/remotes/origin/main" to "main" # need to convert "'refs/remotes/origin/main" to "main"
branch_local=$(echo "$branch" | awk -F'[\\\\/]' ' { print $4 }') branch_local=$(echo "$branch" | awk -F'[\\\\/]' ' { print $4 }')
git switch $branch_local git switch $branch_local
git lfs pull
git status git status
nix run .#update_plugin -- update geyser nix run .#update_plugin -- update geyser