From edb4d910f8a959df931509d25ed3ef76816e5c3b Mon Sep 17 00:00:00 2001 From: kenorb Date: Mon, 23 Sep 2024 16:22:31 +0100 Subject: [PATCH] Setup WSL using action --- .github/workflows/action.yml | 1 + action.yml | 8 -------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 8e5c5e5..1a66f6a 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -60,6 +60,7 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@v4 + - uses: Vampire/setup-wsl@v3 - name: Run Libre (5) uses: ./ with: diff --git a/action.yml b/action.yml index c182386..bdb1a7c 100644 --- a/action.yml +++ b/action.yml @@ -208,14 +208,6 @@ runs: scm: git src: https://github.com/EA31337/ansible-role-mt-runner.git version: dev - - if: runner.os == 'Windows' - name: Ensures WSL is installed (Windows only) - run: | - # Install WSL if not already installed. - wsl --install -d Ubuntu-20.04 - # Wait for WSL to fully install. - Start-Sleep -s 20 - shell: pwsh - name: Runs playbook uses: dawidd6/action-ansible-playbook@v2 with: