From 029673775880d3c2f16e1ebda7011eab6a532775 Mon Sep 17 00:00:00 2001 From: Victor Fernandez de Alba Date: Mon, 20 May 2024 18:16:19 +0200 Subject: [PATCH] Better now --- .../.github/workflows/frontend.yml | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/project/{{ cookiecutter.__folder_name }}/.github/workflows/frontend.yml b/project/{{ cookiecutter.__folder_name }}/.github/workflows/frontend.yml index 0ccbc25..040e2c4 100644 --- a/project/{{ cookiecutter.__folder_name }}/.github/workflows/frontend.yml +++ b/project/{{ cookiecutter.__folder_name }}/.github/workflows/frontend.yml @@ -20,20 +20,20 @@ jobs: meta: runs-on: ubuntu-latest outputs: - BASE_TAG: ${{ steps.vars.outputs.BASE_TAG }} - VOLTO_VERSION: ${{ steps.vars.outputs.VOLTO_VERSION }} + BASE_TAG: {{"${{ steps.vars.outputs.BASE_TAG }}"}} + VOLTO_VERSION: {{ "${{ steps.vars.outputs.VOLTO_VERSION }}" }} steps: - name: Checkout uses: actions/checkout@v4 - 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"]["tag"])' >> $GITHUB_OUTPUT - name: Test vars run: | - echo "BASE_TAG=${{ steps.vars.outputs.BASE_TAG }}" - echo "VOLTO_VERSION=${{ steps.vars.outputs.VOLTO_VERSION }}" + echo 'BASE_TAG={{"${{ steps.vars.outputs.BASE_TAG }}"}}' + echo 'VOLTO_VERSION={{"${{ steps.vars.outputs.VOLTO_VERSION }}"}}' code-analysis: runs-on: ubuntu-latest @@ -62,38 +62,38 @@ jobs: - uses: actions/cache@{{ cookiecutter.__gha_version_cache }} name: Setup pnpm cache with: - path: ${{ env.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + path: {{"${{ env.STORE_PATH }}"}} + key: {{"${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}"}} restore-keys: | - ${{ runner.os }}-pnpm-store- + {{"${{ runner.os }}"}}-pnpm-store- - name: Install dependencies run: make install - name: Linting id: lint - if: ${{ success() || failure() }} + if: {{ "${{ success() || failure() }}" }} run: make lint - name: i18n sync id: i18n - if: ${{ success() || failure() }} + if: {{ "${{ success() || failure() }}" }} run: make ci-i18n - name: Unit Tests id: unit - if: ${{ success() || failure() }} + if: {{ "${{ success() || failure() }}" }} run: make test - name: Report - if: ${{ success() || failure() }} + if: {{ "${{ success() || failure() }}" }} run: | echo '# Code Analysis' >> $GITHUB_STEP_SUMMARY echo '| Test | Status |' >> $GITHUB_STEP_SUMMARY echo '| --- | --- |' >> $GITHUB_STEP_SUMMARY - echo '| Lint | ${{ steps.lint.conclusion == 'failure' && '❌' || ' ✅' }} |' >> $GITHUB_STEP_SUMMARY - echo '| i18n | ${{ steps.i18n.conclusion == 'failure' && '❌' || ' ✅' }} |' >> $GITHUB_STEP_SUMMARY - echo '| Unit Tests | ${{ steps.unit.conclusion == 'failure' && '❌' || ' ✅' }} |' >> $GITHUB_STEP_SUMMARY + {{ "echo '| Lint | ${{ steps.lint.conclusion == 'failure' && '❌' || ' ✅' }} |' >> $GITHUB_STEP_SUMMARY" }} + {{ "echo '| i18n | ${{ steps.i18n.conclusion == 'failure' && '❌' || ' ✅' }} |' >> $GITHUB_STEP_SUMMARY" }} + {{ "echo '| Unit Tests | ${{ steps.unit.conclusion == 'failure' && '❌' || ' ✅' }} |' >> $GITHUB_STEP_SUMMARY " }} release: runs-on: ubuntu-latest