Skip to content

Conversation

bonaert
Copy link

@bonaert bonaert commented Apr 10, 2025

See: #862

Adds a exclude_from_clean option, which excludes the specified path from the clean operation. More concretely, if a value is provided, the action runs git clean -ffdx -e <exclude_from_clean> && git reset --hard HEAD instead of running git clean -ffdx && git reset --hard HEAD.

This is particularly useful for self-hosted runners, where deleting and re-creating certain directories can sometimes be inneficient and costly (examples: node_modules, git LFS files)

@chtaili216
Copy link

gh pr checkout 2141

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants