Add temporary workaround for broken LFS checkout
All checks were successful
/ Build-Chocolatey-Packages (push) Successful in 1m38s

This commit is contained in:
Adam Goldsmith 2023-05-03 10:11:03 -04:00
parent da4df9fe05
commit 331c3d7878

View File

@ -14,8 +14,18 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
with: # Workaround for broken LFS checkout, see https://gitea.com/gitea/act_runner/issues/164
lfs: true - name: Checkout LFS
run: |
UrlBase=$GITHUB_SERVER_URL
UrlLfsBase=$UrlBase/${{ gitea.repository }}.git/info/lfs/objects
git config --local http.${UrlLfsBase}/batch.extraheader "$(git config --get --local http.$UrlBase/.extraheader)"
git config --local http.${UrlLfsBase}/.extraheader ''
git config --local lfs.transfer.maxretries 1
git lfs fetch origin refs/remotes/origin/${{ gitea.ref_name }}
git lfs checkout
- name: Setup dotnet - name: Setup dotnet
uses: https://github.com/actions/setup-dotnet@v3 uses: https://github.com/actions/setup-dotnet@v3
with: with: