back with old LFS system but trying checkout v6 and cache v5
Some checks failed
Create tag and build when new code gets to main / Export (push) Failing after 5m4s
Some checks failed
Create tag and build when new code gets to main / Export (push) Failing after 5m4s
This commit is contained in:
@@ -28,12 +28,38 @@ jobs:
|
|||||||
# with:
|
# with:
|
||||||
# checkout-version: 3
|
# checkout-version: 3
|
||||||
|
|
||||||
- uses: actions/checkout@v6
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
lfs: true
|
lfs: false
|
||||||
|
|
||||||
|
- name: Create LFS file list
|
||||||
|
run: /usr/bin/git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id
|
||||||
|
|
||||||
|
- name: Restore LFS cache
|
||||||
|
uses: actions/cache@v5
|
||||||
|
id: lfs-cache
|
||||||
|
with:
|
||||||
|
path: .git/lfs
|
||||||
|
key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}
|
||||||
|
|
||||||
|
- name: Checkout LFS
|
||||||
|
run: |
|
||||||
|
UrlBase=$GITHUB_SERVER_URL; \
|
||||||
|
UrlLfsBase=$UrlBase/${{ gitea.repository }}.git/info/lfs/objects; \
|
||||||
|
Auth=`/usr/bin/git config --get --local http.$UrlBase/.extraheader`; \
|
||||||
|
/usr/bin/git config --local http.${UrlLfsBase}/batch.extraheader "$Auth"; \
|
||||||
|
/usr/bin/git config --local http.${UrlLfsBase}/.extraheader ''
|
||||||
|
|
||||||
|
git config --local lfs.transfer.maxretries 1
|
||||||
|
|
||||||
|
/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
|
||||||
|
|
||||||
# Cache
|
# Cache
|
||||||
- name: cache
|
- name: Restore Assets
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: assets
|
path: assets
|
||||||
|
|||||||
Reference in New Issue
Block a user