add release tag to filename for starship updates
This commit is contained in:
parent
1190a3f33d
commit
ad5145b060
1 changed files with 3 additions and 3 deletions
|
@ -23,13 +23,13 @@
|
||||||
|
|
||||||
- name: Check if the release was previously downloaded
|
- name: Check if the release was previously downloaded
|
||||||
ansible.builtin.stat:
|
ansible.builtin.stat:
|
||||||
path: "{{ gh_bin_dir }}/{{ release_filename }}"
|
path: "{{ gh_bin_dir }}/{{ release_filename }}_{{ release_latest_tag }}"
|
||||||
register: release_local
|
register: release_local
|
||||||
|
|
||||||
- name: "Download the latest {{ gh_project }} release from GitHub"
|
- name: "Download the latest {{ gh_project }} release from GitHub"
|
||||||
ansible.builtin.get_url:
|
ansible.builtin.get_url:
|
||||||
url: "https://github.com/{{ gh_user }}/{{ gh_project }}/releases/download/{{ release_latest_tag }}/{{ release_filename }}"
|
url: "https://github.com/{{ gh_user }}/{{ gh_project }}/releases/download/{{ release_latest_tag }}/{{ release_filename }}"
|
||||||
dest: "{{ gh_bin_dir }}"
|
dest: "{{ gh_bin_dir }}/{{ release_filename }}_{{ release_latest_tag }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
checksum: sha256:https://github.com/{{ gh_user }}/{{ gh_project }}/releases/download/{{ release_latest['tag'] }}/{{ release_checksum }}
|
checksum: sha256:https://github.com/{{ gh_user }}/{{ gh_project }}/releases/download/{{ release_latest['tag'] }}/{{ release_checksum }}
|
||||||
when: not release_local.stat.exists
|
when: not release_local.stat.exists
|
||||||
|
@ -37,6 +37,6 @@
|
||||||
|
|
||||||
- name: "starship updated"
|
- name: "starship updated"
|
||||||
ansible.builtin.unarchive:
|
ansible.builtin.unarchive:
|
||||||
src: "{{ gh_bin_dir }}/{{ release_filename }}"
|
src: "{{ gh_bin_dir }}/{{ release_filename }}_{{ release_latest_tag }}"
|
||||||
dest: "{{ home_dir }}/bin"
|
dest: "{{ home_dir }}/bin"
|
||||||
when: starship_dl.changed
|
when: starship_dl.changed
|
||||||
|
|
Loading…
Reference in a new issue