diff --git a/.github/workflows/deploy-to-smr.yml b/.github/workflows/deploy-to-smr.yml index 15fd62d68..41ba3404c 100644 --- a/.github/workflows/deploy-to-smr.yml +++ b/.github/workflows/deploy-to-smr.yml @@ -77,7 +77,8 @@ jobs: } else { const json = await response.json(); let mod = json.data.getModByReference.versions[0]; - if (mod.approved && mod.virustotal_results.safe) { + let unsafe = virustotal_results.find(virus => !virus.safe); + if (mod.approved && !unsafe) { console.log("Version got approved!"); return; }