From 6b32fae0a31e0312dcdb940b7d5e482fd5dec5a1 Mon Sep 17 00:00:00 2001 From: Victor Fernandez de Alba Date: Thu, 17 Oct 2024 12:42:23 +0200 Subject: [PATCH] Fix workflow --- .github/workflows/frontend.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 870bdb2..34062aa 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -26,7 +26,7 @@ jobs: id: vars run: | echo 'BASE_TAG=sha-$(git rev-parse --short HEAD)' >> $GITHUB_OUTPUT - python3 -c 'import json; data = json.load(open("./mrs.developer.json")); print("VOLTO_VERSION=" + data["core"]["tag"])' >> $GITHUB_OUTPUT + python3 -c 'import json; data = json.load(open("./mrs.developer.json")); print("VOLTO_VERSION=" + data["core"].get("tag") if data["core"].get("tag") else data["core"].get("branch", ""))' >> $GITHUB_OUTPUT - name: Test vars run: | echo 'BASE_TAG=${{ steps.vars.outputs.BASE_TAG }}'