Use var for base url
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Adrien Reslinger 2021-01-17 12:45:43 +01:00
parent 8a6f641ef7
commit b7620e0c64
Signed by: adrien
GPG key ID: DA7B27055C66D6DE
2 changed files with 3 additions and 2 deletions

View file

@ -1,2 +1,3 @@
---
gopass_download_base_url: "https://github.com/gopasspw/gopass/releases/download"
gopass_base_url: "https://github.com/gopasspw/gopass"
gopass_download_base_url: "{{ gopass_base_url }}/releases/download"

View file

@ -27,7 +27,7 @@
- gopass.stat.exists
- name: Check online version
shell: set -o pipefail && curl -s https://github.com/gopasspw/gopass/releases/latest | sed 's|.*tag/v\(.*\)".*|\1|'
shell: set -o pipefail && curl -s {{ gopass_base_url }}/releases/latest | sed 's|.*tag/v\(.*\)".*|\1|'
register: gopass_ver
changed_when: false
check_mode: no