andresz1 / size-limit-action

Compare the real cost to run your JS app or lib to keep good performance in every pull request
ISC License
449 stars 83 forks source link

Should run `git reset --hard` on checking out to different branches #113

Open JounQin opened 9 months ago

JounQin commented 9 months ago

For example, when master is not ready and I add a gitsubmodule in a PR, currently this action will always fail the submodule contains some files which are expected to be ignored, but when this action checks out to main branch, the submodule is still there, so maybe git reset --hard may help.

/usr/bin/git checkout -f main
warning: unable to rmdir 'DOMPurify': Directory not empty