Skip to content

Commit

Permalink
Removing latest API call and relevant tests;
Browse files Browse the repository at this point in the history
  • Loading branch information
Shackelford-Arden committed Jan 10, 2024
1 parent 9959390 commit e3dd6c6
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 133 deletions.
4 changes: 0 additions & 4 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,3 @@ tasks:
test-all:
cmds:
- cmd: molecule test --all

test-latest:
cmds:
- cmd: molecule test -s latest
10 changes: 0 additions & 10 deletions molecule/latest/converge.yml

This file was deleted.

71 changes: 0 additions & 71 deletions molecule/latest/molecule.yml

This file was deleted.

21 changes: 0 additions & 21 deletions molecule/latest/prepare.yml

This file was deleted.

10 changes: 0 additions & 10 deletions molecule/latest/tests/test_default.py

This file was deleted.

17 changes: 0 additions & 17 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,5 @@
# Standards: 1.2
---
- name: Get Latest Version
when: starship_version == "latest"
tags:
- starship
block:
- name: Check API for Latest Version
ansible.builtin.uri:
url: "https://api.github.com/repos/starship/starship/releases/latest"
return_content: true
body_format: json
register: latest_json

- name: Set starship_version to Latest
ansible.builtin.set_fact:
# Added the replace to maintain consistency with current inputs
starship_version: "{{ latest_json.json.tag_name | ansible.builtin.regex_replace('v', '') }}"

- name: Check Existing Install
register: starship_version_check
Expand All @@ -28,7 +12,6 @@

- name: Fact version change
when:
# - starship_version_check.rc == 0
- starship_version_check.stdout_lines is defined
- starship_version not in starship_version_check.stdout_lines[0]
ansible.builtin.set_fact:
Expand Down

0 comments on commit e3dd6c6

Please sign in to comment.