diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 2b9c6f9..6f4161c 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -27,9 +27,14 @@ jobs: - name: Set Env Vars id: vars run: | - echo 'BASE_TAG=sha-$(git rev-parse --short HEAD)' >> $GITHUB_OUTPUT + echo 'BASE_TAG=sha-'$(git rev-parse --short HEAD) >> $GITHUB_OUTPUT echo "PLONE_VERSION=$(cat version.txt)" >> $GITHUB_OUTPUT + - name: Test vars + run: | + echo 'BASE_TAG=${{ steps.vars.outputs.BASE_TAG }}' + echo 'PLONE_VERSION=${{ steps.vars.outputs.VOLTO_VERSION }}' + code-quality: runs-on: ubuntu-latest needs: diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index f2f6e43..391e83a 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -25,7 +25,7 @@ jobs: - name: Compute several vars needed for the build id: vars run: | - echo 'BASE_TAG=sha-$(git rev-parse --short HEAD)' >> $GITHUB_OUTPUT + 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"].get("tag") or "latest")' >> $GITHUB_OUTPUT - name: Test vars run: | diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 0e6091a..9691fbf 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -22,7 +22,7 @@ jobs: - name: Compute several vars needed for the build id: vars run: | - echo 'BASE_TAG=sha-$(git rev-parse --short HEAD)' >> $GITHUB_OUTPUT + echo 'BASE_TAG=sha-'$(git rev-parse --short HEAD) >> $GITHUB_OUTPUT echo "PLONE_VERSION=$(cat version.txt)" >> $GITHUB_OUTPUT python3 -c 'import json; data = json.load(open("./mrs.developer.json")); print("VOLTO_VERSION=" + data["core"].get("tag") or "latest")' >> $GITHUB_OUTPUT - name: Test vars