Skip to content

Commit

Permalink
Clean up github action
Browse files Browse the repository at this point in the history
  • Loading branch information
naegelejd committed Nov 22, 2023
1 parent 7ad47a7 commit d5b64f4
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/actions/configure-environment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,30 @@ runs:
with:
miniforge-variant: Mambaforge
miniforge-version: latest
# Do not specify environment file - see Cache step below
activate-environment: yardl
# environment-file: ci-environment.yml
use-mamba: true

- name: Get Date
id: get-date
shell: bash
run: echo "::set-output name=today::$(/bin/date -u '+%Y%m%d')"
run: echo "DATE=$(date -u +'%Y%m%d')" >> $GITHUB_ENV

- name: Cache Conda Env
id: cache-conda
uses: actions/cache@v2
with:
path: ${{ env.CONDA }}/envs
key:
conda-${{ runner.os }}--${{ runner.arch }}--${{
steps.get-date.outputs.today }}-${{
hashFiles('ci-environment.yml') }}-${{
env.DATE }}-${{
env.CONDA_CACHE_NUMBER }}
# key: ${{ runner.os }}-conda-${{ hashFiles('ci-environment.yml') }}
id: cache

- name: Update Environment
shell: bash
run: mamba env update -n yardl -f ci-environment.yml
if: steps.cache.outputs.cache-hit != 'true'
if: steps.cache-conda.outputs.cache-hit != 'true'


- uses: actions/setup-go@v4
Expand Down

0 comments on commit d5b64f4

Please sign in to comment.