Skip to content

Commit 75e79fa

Browse files
authored
ci: fix node-bench-regression-guard for master (#6589)
Closes paritytech/ci_cd#1067
1 parent 6da7d36 commit 75e79fa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/tests-misc.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,14 @@ jobs:
165165

166166
- name: Download artifact (master run)
167167
uses: actions/[email protected]
168+
continue-on-error: true
168169
with:
169170
name: cargo-check-benches-master-${{ github.sha }}
170171
path: ./artifacts/master
171172

172173
- name: Download artifact (current run)
173174
uses: actions/[email protected]
175+
continue-on-error: true
174176
with:
175177
name: cargo-check-benches-current-${{ github.sha }}
176178
path: ./artifacts/current
@@ -183,6 +185,12 @@ jobs:
183185
exit 0
184186
fi
185187
188+
# fail if no artifacts
189+
if [ ! -d ./artifacts/master ] || [ ! -d ./artifacts/current ]; then
190+
echo "No artifacts found"
191+
exit 1
192+
fi
193+
186194
docker run --rm \
187195
-v $PWD/artifacts/master:/artifacts/master \
188196
-v $PWD/artifacts/current:/artifacts/current \

0 commit comments

Comments
 (0)