Skip to content

Commit 56e1f61

Browse files
tilo-14sergeytimoshin
andcommitted
fix: skip photon install when cache hit
Co-Authored-By: Sergey Timoshin <sergeytimoshin@users.noreply.github.com>
1 parent 26dc51d commit 56e1f61

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/actions/setup/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ runs:
7878

7979
- name: Cache Photon indexer
8080
if: inputs.photon-indexer == 'true'
81+
id: cache-photon
8182
uses: actions/cache@v4
8283
with:
8384
path: ~/.cargo/bin/photon
@@ -137,7 +138,7 @@ runs:
137138
run: npm install -g snarkjs
138139

139140
- name: Install Photon indexer
140-
if: inputs.photon-indexer == 'true'
141+
if: inputs.photon-indexer == 'true' && steps.cache-photon.outputs.cache-hit != 'true'
141142
shell: bash
142143
env:
143144
RUSTFLAGS: "-A dead-code"

0 commit comments

Comments
 (0)