Simple remove all files from the _work directory
When a checkout action is performed on a runner, the original files aren't deleted. This could intervene with some actions in the next steps.
The action will remove all the file created by previous steps and will make sure that the _work folder is empty
name: Build with Clean
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: self-hosted
steps:
- name: Clean Working dir
uses: ktijssen/clean-workspace@v1
- name: Checkout Project Repo
uses: actions/checkout@v3
- run: echo Hello World