From f88d2629bfe2a35494240a9d97a5a4759cb86d34 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Mon, 22 Jul 2024 23:54:01 +0200 Subject: gitea fix gitea --- roles/gitea/tasks/main.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'roles/gitea/tasks/main.yml') diff --git a/roles/gitea/tasks/main.yml b/roles/gitea/tasks/main.yml index 0d49cf3..575f459 100644 --- a/roles/gitea/tasks/main.yml +++ b/roles/gitea/tasks/main.yml @@ -71,13 +71,20 @@ url: 'https://codeberg.org/forgejo/forgejo/releases/download/v{{ gitea.version.ver }}/forgejo-{{ gitea.version.ver }}-linux-amd64.sha256' method: GET return_content: yes - register: gitea_sha256_raw + register: forgejo_sha256_raw when: gitea_use_forgejo - name: set sha256sum set_fact: gitea_sha256: '{{ (gitea_sha256_raw.content | split(" "))[0] }}' cacheable: false + when: not gitea_use_forgejo + +- name: set sha256sum + set_fact: + gitea_sha256: '{{ (forgejo_sha256_raw.content | split(" "))[0] }}' + cacheable: false + when: gitea_use_forgejo - name: Check for update stat: -- cgit v1.2.3