Skip to content

Commit

Permalink
Merge pull request #38 from brian-rose/test-env-change
Browse files Browse the repository at this point in the history
Revert binder test condition; test out new logic
  • Loading branch information
brian-rose authored Feb 20, 2023
2 parents 36246f0 + 2657a70 commit 52f4fef
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/build-book.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 52f4fef

Please sign in to comment.