A simple GitHub Action to clean up your workspace.
The action will delete all files and folders in the workspace, including the files starting with a dot.
The action will check that the workspace is not the root of the filesystem before deleting anything.
The action can be used in a workflow like this:
steps:
- uses: kuznetsss/workspace-cleanup@1
- uses: actions/checkout@v4
Of course it should be used before checkout.