Skip to content

Commit 49545f3

Browse files
committed
Always run conda cache step
1 parent 67a9019 commit 49545f3

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/build_workflow.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,29 @@ on:
1010
workflow_dispatch:
1111

1212
jobs:
13+
update-conda:
14+
if: ${{ github.event_name != 'push' }}
15+
runs-on: ubuntu-latest
16+
defaults:
17+
run:
18+
shell: bash -l {0}
19+
timeout-minutes: 5
20+
steps:
21+
- uses: actions/checkout@v2
22+
with:
23+
persist-credentials: false
24+
fetch-depth: 0
25+
26+
- name: Cache Conda
27+
uses: actions/cache@v4
28+
env:
29+
# Increase this value to reset cache if conda-env/docs.yml has not changed in the workflow
30+
CACHE_NUMBER: 0
31+
with:
32+
path: ~/conda_pkgs_dir
33+
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
34+
hashFiles('conda-env/docs.yml') }}
35+
1336
publish-docs:
1437
if: ${{ github.event_name == 'push' }}
1538
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)