Skip to content

bug: 🐝 lfs file push failed #1896

@CKRainbow

Description

@CKRainbow

Describe the bug

My project need to serve a godot game, whose pck file exceeds the limit 100MB. I have use lfs in checkout, and set *.pck to be monitored by lfs in main branch. While I still get this error.

Run JamesIves/github-pages-deploy-action@releases/v4
  with:
    branch: gh-pages
    folder: build/web
    token: ***
    clean: true
    force: true
    attempt-limit: 3
  env:
    GODOT_VERSION: 3.6
    PARATRANZ_TOKEN: ***
    PARATRANZ_PROJECT: ***
    EXPORT_NAME: BDCC
/usr/bin/docker exec  6aa4cf31647713b88ed135ef33d029881bb9df83d89608a9084835a8248dfcac sh -c "cat /etc/*release | grep ^ID"

    ╭━━━╮╭╮╭╮╱╭╮╱╱╭╮╱╱╭━━━╮
    ┃╭━╮┣╯╰┫┃╱┃┃╱╱┃┃╱╱┃╭━╮┃
    ┃┃╱╰╋╮╭┫╰━╯┣╮╭┫╰━╮┃╰━╯┣━━┳━━┳━━┳━━╮
    ┃┃╭━╋┫┃┃╭━╮┃┃┃┃╭╮┃┃╭━━┫╭╮┃╭╮┃┃━┫━━┫
    ┃╰┻━┃┃╰┫┃╱┃┃╰╯┃╰╯┃┃┃╱╱┃╭╮┃╰╯┃┃━╋━━┃
    ╰━━━┻┻━┻╯╱╰┻━━┻━━╯╰╯╱╱╰╯╰┻━╮┣━━┻━━╯
    ╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╭━╯┃
    ╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╰━━╯
    ╭━━━╮╱╱╱╱╱╭╮╱╱╱╱╱╱╱╱╭━━━╮╱╱╭╮
    ╰╮╭╮┃╱╱╱╱╱┃┃╱╱╱╱╱╱╱╱┃╭━╮┃╱╭╯╰╮
    ╱┃┃┃┣━━┳━━┫┃╭━━┳╮╱╭╮┃┃╱┃┣━┻╮╭╋┳━━┳━╮
    ╱┃┃┃┃┃━┫╭╮┃┃┃╭╮┃┃╱┃┃┃╰━╯┃╭━┫┃┣┫╭╮┃╭╮╮
    ╭╯╰╯┃┃━┫╰╯┃╰┫╰╯┃╰━╯┃┃╭━╮┃╰━┫╰┫┃╰╯┃┃┃┃
    ╰━━━┻━━┫╭━┻━┻━━┻━╮╭╯╰╯╱╰┻━━┻━┻┻━━┻╯╰╯
    ╱╱╱╱╱╱╱┃┃╱╱╱╱╱╱╭━╯┃
    ╱╱╱╱╱╱╱╰╯╱╱╱╱╱╱╰━━╯
    

    💖 Support: https://github.com/sponsors/JamesIves
    📣 Maintained by James Ives: https://jamesiv.es/

    🚀 Getting Started Guide: https://github.com/JamesIves/github-pages-deploy-action
    ❓ Discussions / Q&A: https://github.com/JamesIves/github-pages-deploy-action/discussions
    🔧 Report a Bug: https://github.com/JamesIves/github-pages-deploy-action/issues
Checking configuration and starting deployment… 🚦
Deploying using Deploy Token… 🔑
Configuring git…
/usr/bin/git config --global --add safe.directory /__w/BDCCChineseLocalization/BDCCChineseLocalization
/usr/bin/git config user.name CKRainbow
/usr/bin/git config user.email [email protected]
/usr/bin/git config core.ignorecase false
/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
/usr/bin/git remote rm origin
/usr/bin/git remote add origin ***github.com/chinese-liliths-throne/BDCCChineseLocalization.git
Git configured… 🔧
Starting to commit changes…
/usr/bin/git ls-remote --heads ***github.com/chinese-liliths-throne/BDCCChineseLocalization.git refs/heads/gh-pages
60e37c20e33d32e4d94e3f6afadf51483d65d135	refs/heads/gh-pages
Creating worktree…
/usr/bin/git fetch --no-recurse-submodules --depth=1 origin gh-pages
From https://github.com/chinese-liliths-throne/BDCCChineseLocalization
 * branch            gh-pages   -> FETCH_HEAD
 * [new branch]      gh-pages   -> origin/gh-pages
/usr/bin/git worktree add --no-checkout --detach github-pages-deploy-action-temp-deployment-folder
Preparing worktree (detached HEAD 74cbb39)
/usr/bin/git checkout -B gh-pages origin/gh-pages
Previous HEAD position was 74cbb39 fix workflow
Switched to a new branch 'gh-pages'
Branch 'gh-pages' set up to track remote branch 'gh-pages' from 'origin'.
/usr/bin/git config --global --add safe.directory /__w/BDCCChineseLocalization/BDCCChineseLocalization/github-pages-deploy-action-temp-deployment-folder
/usr/bin/chmod -R +rw /__w/BDCCChineseLocalization/BDCCChineseLocalization/build/web
/usr/bin/rsync -q -av --checksum --progress /__w/BDCCChineseLocalization/BDCCChineseLocalization/build/web/. github-pages-deploy-action-temp-deployment-folder --delete --exclude CNAME --exclude .nojekyll --exclude .ssh --exclude .git --exclude .github
Checking if there are files to commit…
/usr/bin/git add --all .
/usr/bin/git checkout -b github-pages-deploy-action/4nq50xf71
Switched to a new branch 'github-pages-deploy-action/4nq50xf71'
/usr/bin/git commit -m Deploying to gh-pages from @ chinese-liliths-throne/BDCCChineseLocalization@74cbb39279924cab74b38a7d7f1d50ee73aae2ed 🚀 --quiet --no-verify
Force-pushing changes...
/usr/bin/git push --force ***github.com/chinese-liliths-throne/BDCCChineseLocalization.git github-pages-deploy-action/4nq50xf71:gh-pages
remote: error: Trace: f758529d82921f52540ca55106b9ed79502c5b0780b80ed93ce62d7aeb85539f        
remote: error: See https://gh.io/lfs for more information.        
remote: error: File index.pck is 101.05 MB; this exceeds GitHub's file size limit of 100.00 MB        
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com./        
To https://github.com/chinese-liliths-throne/BDCCChineseLocalization.git
 ! [remote rejected] github-pages-deploy-action/4nq50xf71 -> gh-pages (pre-receive hook declined)
error: failed to push some refs to '***github.com/chinese-liliths-throne/BDCCChineseLocalization.git'
Running post deployment cleanup jobs… 🗑️
/usr/bin/git checkout -B github-pages-deploy-action/4nq50xf71
Reset branch 'github-pages-deploy-action/4nq50xf71'
/usr/bin/chmod -R +rw github-pages-deploy-action-temp-deployment-folder
/usr/bin/git worktree remove github-pages-deploy-action-temp-deployment-folder --force
Error: The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 1 ❌
Notice: Deployment failed! ❌

Reproduction Steps

Just the the folder which contains a large file.

Logs

https://github.com/chinese-liliths-throne/BDCCChineseLocalization/actions/runs/17901060614/job/50894466401#logs

Workflow

https://github.com/chinese-liliths-throne/BDCCChineseLocalization/actions/runs/17901060614/workflow

Additional Comments

No response

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions