Skip to content

Commit a5a5c17

Browse files
committed
Updates cache workflow triggers and environment update.
Adds pull request triggers to the cache update workflow, ensuring the cache is up-to-date on pull requests. Changes the environment update command from `mamba` to `conda` to ensure compatibility. Only caches the ARC environment on push events, preventing unnecessary cache updates on other events.
1 parent e90fdb9 commit a5a5c17

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/update-cache.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
- cron: '0 0 */7 * *'
66
push:
77
branches: [ main ]
8+
pull_request:
9+
branches: [ main ]
10+
types: [opened, synchronize, reopened, ready_for_review]
811

912
jobs:
1013
update_cache:
@@ -128,10 +131,12 @@ jobs:
128131

129132
# ────────── Update env & save to cache ──────────
130133
- name: Update environment
131-
run: mamba env update -n arc_env -f environment.yml
134+
run: conda env update -n arc_env -f environment.yml
132135

133136
- name: Cache ARC env
137+
if: github.event_name == 'push'
134138
uses: actions/cache@v4
135139
with:
136140
path: ${{ env.CONDA }}/envs
137141
key: conda-${{ runner.os }}-${{ runner.arch }}-0
142+

0 commit comments

Comments
 (0)