diff --git a/.github/workflows/cookiecutter.yml b/.github/workflows/cookiecutter.yml index c9886db..b0785e0 100644 --- a/.github/workflows/cookiecutter.yml +++ b/.github/workflows/cookiecutter.yml @@ -8,6 +8,8 @@ jobs: auto-update-project: runs-on: ubuntu-latest steps: + - name: Cleanup workspace + uses: creditornot/actions/action-clean@main - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 diff --git a/.github/workflows/dependencies.yml b/.github/workflows/dependencies.yml index a657d27..3228362 100644 --- a/.github/workflows/dependencies.yml +++ b/.github/workflows/dependencies.yml @@ -8,6 +8,8 @@ jobs: auto-update-dependencies: runs-on: ubuntu-latest steps: + - name: Cleanup workspace + uses: creditornot/actions/action-clean@main - uses: actions/checkout@v4 - uses: ./.github/actions/python-poetry-env diff --git a/.github/workflows/draft_release.yml b/.github/workflows/draft_release.yml index 16f391f..e2dc15b 100644 --- a/.github/workflows/draft_release.yml +++ b/.github/workflows/draft_release.yml @@ -12,6 +12,8 @@ jobs: draft-release: runs-on: ubuntu-latest steps: + - name: Cleanup workspace + uses: creditornot/actions/action-clean@main - uses: actions/checkout@v4 - uses: ./.github/actions/python-poetry-env - name: Update version diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 070b134..9b94515 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,6 +8,8 @@ jobs: build-and-publish: runs-on: ubuntu-latest steps: + - name: Cleanup workspace + uses: creditornot/actions/action-clean@main - uses: actions/checkout@v4 - uses: ./.github/actions/python-poetry-env - name: Publish to pypi diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7402fa7..ce183f5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,6 +10,8 @@ jobs: actionlint: runs-on: ubuntu-latest steps: + - name: Cleanup workspace + uses: creditornot/actions/action-clean@main - uses: actions/checkout@v4 - name: Download actionlint run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) 1.6.21 @@ -22,6 +24,8 @@ jobs: name: Check if automatic project update was successful runs-on: ubuntu-latest steps: + - name: Cleanup workspace + uses: creditornot/actions/action-clean@main - uses: actions/checkout@v4 - name: Fail if .rej files exist as structure update was not successful run: test -z "$(find . -iname '*.rej')" @@ -29,6 +33,8 @@ jobs: pre-commit: runs-on: ubuntu-latest steps: + - name: Cleanup workspace + uses: creditornot/actions/action-clean@main - uses: actions/checkout@v4 - uses: ./.github/actions/python-poetry-env - run: poetry run pre-commit run --all-files @@ -40,6 +46,8 @@ jobs: matrix: python-version: ["3.10", "3.11", "3.12"] steps: + - name: Cleanup workspace + uses: creditornot/actions/action-clean@main - uses: actions/checkout@v4 - uses: ./.github/actions/python-poetry-env with: