diff --git a/.github/actions/install-concordia/action.yml b/.github/actions/install-concordia/action.yml index 34323aba..a8cb62d5 100644 --- a/.github/actions/install-concordia/action.yml +++ b/.github/actions/install-concordia/action.yml @@ -54,14 +54,7 @@ runs: install-concordia-${{ steps.os-info.outputs.name }}-${{ steps.os-info.outputs.version }}-py${{ steps.setup-python.outputs.python-version }}- - name: Create or activate venv - shell: bash - run: | - echo include-examples='${{ inputs.include-examples }}' - echo restore-examples='${{ steps.restore-examples.outputs.cache-hit }}' - echo restore-concordia='${{ steps.restore-concordia.outputs.cache-hit }}' - - - name: Create or activate venv - if: steps.restore-examples.outputs.cache-hit != 'true' || steps.restore-concordia.outputs.cache-hit != 'true' + if: inputs.include-examples == 'true' && steps.restore-examples.outputs.cache-hit != 'true' || inputs.include-examples != 'true' && steps.restore-concordia.outputs.cache-hit != 'true' shell: bash run: | python -m venv venv @@ -70,7 +63,8 @@ runs: - name: Install Concordia if: steps.restore-examples.outputs.cache-hit != 'true' && steps.restore-concordia.outputs.cache-hit != 'true' shell: bash - run: pip install --editable .[dev] + run: | + pip install --editable .[dev] - name: Save Concordia installation if: steps.restore-examples.outputs.cache-hit != 'true' && steps.restore-concordia.outputs.cache-hit != 'true'