Skip to content

Commit

Permalink
mark code snippets as yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
epassaro committed Nov 20, 2021
1 parent e9c40dd commit e996a97
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -579,9 +579,9 @@ Miniconda installation path requires succesive changes of folder ownership in
order to work with the `cache` action.

Every operating system use a different Miniforge `prefix`, so if you want to
cache the environment on all of them you must use a `matrix` strategy:
cache the environment on all of them you must use a `matrix` strategy.

```
```yaml
strategy:
matrix:
include:
Expand All @@ -601,7 +601,7 @@ cache the environment on all of them you must use a `matrix` strategy:
Then, the first installation step should setup a Miniconda variant without
specifying a environment file.

```
```yaml
- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v2
with:
Expand All @@ -616,7 +616,7 @@ of package versions between the CI pipeline and local installations. You can
skip this step if you use an environment file product of `conda env export`
or `conda list --explicit`.

```
```yaml
- name: Set cache date
run: echo "DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV

Expand All @@ -633,7 +633,7 @@ or `conda list --explicit`.
Finally, update the environment based on the environment file if the cache
does not exist.

```
```yaml
- name: Update environment
run: mamba env update -n your-env-name -f environment.yml
if: steps.cache.outputs.cache-hit != 'true'
Expand Down

0 comments on commit e996a97

Please sign in to comment.