Add cleanup job to dispatcher workflow

Add a cleanup job to the workflow for final cleanup.
This commit is contained in:
Hatvani Tamás
2025-11-07 13:19:40 +01:00
committed by GitHub
parent bc2eca7eac
commit c6c2e27d34

View File

@@ -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