From c6c2e27d34cf8bba9156d4eb93f6b184a549e634 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hatvani=20Tam=C3=A1s?= <75033623+htamas1210@users.noreply.github.com> Date: Fri, 7 Nov 2025 13:19:40 +0100 Subject: [PATCH] Add cleanup job to dispatcher workflow Add a cleanup job to the workflow for final cleanup. --- .github/workflows/dispatcher.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dispatcher.yml b/.github/workflows/dispatcher.yml index 1555641..7efbf6f 100644 --- a/.github/workflows/dispatcher.yml +++ b/.github/workflows/dispatcher.yml @@ -61,7 +61,18 @@ jobs: if: needs.dispatch.outputs.ui == 'true' uses: ./.github/workflows/ui_test.yml secrets: inherit - + + cleanup: + runs-on: self-hosted + needs: [engine, server, ui] + if: always() + steps: + - name: Final cleanup + run: | + echo "Final cleanup on self-hosted runner..." + cd "$GITHUB_WORKSPACE" + git clean -fdx + git reset --hard