From 617210a65bfc0fb5522e4ec1b3f6f266636b7b43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zden=C4=9Bk=20Vydra?= <80331839+vydrazde@users.noreply.github.com> Date: Thu, 16 Jan 2025 14:48:09 +0100 Subject: [PATCH] Fix windows conditions for when determining installed version fails --- tasks/install_runner_win.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/install_runner_win.yml b/tasks/install_runner_win.yml index d94472e..2da19fe 100644 --- a/tasks/install_runner_win.yml +++ b/tasks/install_runner_win.yml @@ -26,14 +26,14 @@ url: "https://github.com/{{ runner_download_repository }}/releases/download/v{{ runner_version }}/\ actions-runner-{{ github_actions_system }}-{{ github_actions_architecture }}-{{ runner_version }}.zip" dest: "%TEMP%\\actions-runner-{{ github_actions_system }}-{{ github_actions_architecture }}-{{ runner_version }}.zip" - when: runner_version not in runner_installed.stdout or reinstall_runner + when: runner_installed.stdout is not defined or runner_version not in runner_installed.stdout or reinstall_runner - name: Unarchive runner package community.windows.win_unzip: src: "%TEMP%\\actions-runner-{{ github_actions_system }}-{{ github_actions_architecture }}-{{ runner_version }}.zip" dest: "{{ runner_dir }}\\" delete_archive: yes - when: runner_version not in runner_installed.stdout or reinstall_runner + when: runner_installed.stdout is not defined or runner_version not in runner_installed.stdout or reinstall_runner - name: Configure custom env file if required randrej.windows.win_blockinfile: