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
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