Skip to content

Commit fdb5ccf

Browse files
committed
Update pixi cache
1 parent b2656fb commit fdb5ccf

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/build.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- uses: prefix-dev/setup-pixi@v0.8.1
5454
with:
5555
cache: true
56-
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'master' }}
56+
cache-write: ${{ contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name) && github.ref_name == 'master' }}
5757

5858
- run: pixi run sphinx-build -M linkcheck . _build -W --keep-going -a -q
5959
continue-on-error: true
@@ -94,7 +94,7 @@ jobs:
9494
- uses: prefix-dev/setup-pixi@v0.8.1
9595
with:
9696
cache: true
97-
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'master' }}
97+
cache-write: ${{ contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name) && github.ref_name == 'master' }}
9898
environments: test
9999
manifest-path: tutorials/pixi.toml
100100
activate-environment: true
@@ -123,7 +123,7 @@ jobs:
123123
- uses: prefix-dev/setup-pixi@v0.8.1
124124
with:
125125
cache: true
126-
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'master' }}
126+
cache-write: ${{ contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name) && github.ref_name == 'master' }}
127127

128128
- name: Build Documentation
129129
run: pixi run sphinx-build -M html . _build -W --keep-going -a -t draft
@@ -148,7 +148,7 @@ jobs:
148148
- uses: prefix-dev/setup-pixi@v0.8.1
149149
with:
150150
cache: true
151-
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'master' }}
151+
cache-write: ${{ contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name) && github.ref_name == 'master' }}
152152

153153
- name: Build Documentation
154154
run: pixi run sphinx-build -M html . _build -W --keep-going -a

0 commit comments

Comments
 (0)