Skip to content

Commit

Permalink
feat: get latest release of homebrew
Browse files Browse the repository at this point in the history
  • Loading branch information
lotyp committed May 28, 2022
1 parent 6cc3c30 commit 46c09ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license = "GPL-3.0-only"
[tool.poetry.dependencies]
python = "^3.8"
ansible = "^5.8.0"
github.py = "^3.2.0"
"github3.py" = "^3.2.0"

[tool.poetry.dev-dependencies]
molecule = "^3.6.1"
Expand Down
6 changes: 4 additions & 2 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,16 @@
- name: Homebrew | Install | Get latest release tag
community.general.github_release:
user: Homebrew
repo: brew
action: latest_release
repo: Homebrew/brew
register: brew_latest_release
tags:
- brew-install

- name: Homebrew | Install | Cloning latest release to "{{ homebrew_install_path }}"
ansible.builtin.git:
repo: "{{ homebrew_repository }}"
version: "{{ brew_latest_release[tag] }}"
version: "{{ brew_latest_release.tag }}"
dest: "{{ homebrew_install_path }}"
update: false
depth: 1
Expand Down

0 comments on commit 46c09ab

Please sign in to comment.