From 2657a7098426d4f112d1be4586fc2d76b09d0a72 Mon Sep 17 00:00:00 2001 From: Brian Rose Date: Mon, 20 Feb 2023 10:36:40 -0700 Subject: [PATCH] Revert binder test condition; test out new logic --- .github/workflows/build-book.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-book.yaml b/.github/workflows/build-book.yaml index 6f96918..a92f3d8 100644 --- a/.github/workflows/build-book.yaml +++ b/.github/workflows/build-book.yaml @@ -77,6 +77,18 @@ jobs: echo ${{ steps.parse_config.outputs.execute_notebooks }} echo ${{ steps.parse_config.outputs.binderhub_url }} + - name: Test for environment change + id: env_change + uses: tj-actions/changed-files@v35 + with: + files: ${{ inputs.environment_file }} + + - name: List all changed files + run: | + for file in ${{ steps.env_change.outputs.all_changed_files }}; do + echo "$file was changed" + done + - name: Setup Mambaforge uses: conda-incubator/setup-miniconda@v2 with: @@ -113,7 +125,7 @@ jobs: if: | (inputs.use_cached_environment != 'true' || steps.cache.outputs.cache-hit != 'true') - && steps.parse_config.outputs.execute_notebooks == 'binder' + && steps.parse_config.outputs.execute_notebooks != 'binder' run: mamba env update -n ${{ inputs.environment_name }} -f ${{ inputs.environment_file }} - name: Get paths to notebook files