Skip to content

Commit

Permalink
Update deploy-to-smr.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Panakotta00 authored Oct 29, 2024
1 parent e366f1e commit f06b8e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-to-smr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ jobs:
method: "POST",
headers: {"Cookies": "token=${{secrets.SMR_API_KEY}}", "Content-Type":"application/json"},
body: JSON.stringify({
query: '{getModByReference(modReference:"FicsItNetworks"){versions(filter:{order_by:created_at}){approved}}}'
query: '{getModByReference(modReference:"FicsItNetworks"){versions(filter:{order_by:created_at}){approved virustotal_results{safe}}}}'
})
})
if (!response.ok) {
console.log(`Checking Fetch: Response is not OK: ${response.status}`);
} else {
const json = await response.json();
let mod = json.data.getModByReference.versions[0];
let unsafe = virustotal_results.find(virus => !virus.safe);
let unsafe = mod.virustotal_results.find(virus => !virus.safe);
if (mod.approved && !unsafe) {
console.log("Version got approved!");
return;
Expand Down

0 comments on commit f06b8e2

Please sign in to comment.