Skip to content

Commit

Permalink
Retry copy runner.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonpugh committed May 21, 2024
1 parent 5f64426 commit ae9d388
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions roles/operations.runner/tasks/github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
item_runner_labels: "{{ item.runner_user | default(operations_platform_user) }}@{{ item.runner_name | default(inventory_hostname) }},user/{{ item.runner_user | default(operations_platform_user) | default('platform') }},{{ item.runner_labels | default('') }}"
item_runner_api_token: "{{ item.api_token | default(operations_github_api_token) }}"

# Retry because it will fail if a job is running.
- name: Copy GitHub Runner
until: "{{ result.rc == 0 }}"
register: result
retries: 4
copy:
src: "{{ operations_github_runner_path }}/"
dest: "{{ item_runner_path }}"
Expand Down

0 comments on commit ae9d388

Please sign in to comment.