Skip to content

Commit

Permalink
Fix windows conditions for when determining installed version fails
Browse files Browse the repository at this point in the history
  • Loading branch information
vydrazde committed Jan 16, 2025
1 parent 671443d commit 617210a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/install_runner_win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 617210a

Please sign in to comment.