Flatten note tags and store processed media as ordinary resource links
wiki CI and deployment / verify-and-deploy (push) Successful in 13m27s
wiki CI and deployment / verify-and-deploy (push) Successful in 13m27s
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
const slugs=['learning-skills-notes','learning-skills-teaching','learning-skills-english'];
|
||||
for(let attempt=0;attempt<120;attempt++){
|
||||
const states=await Promise.all(slugs.map(async slug=>{const r=await fetch('http://127.0.0.1:3000/api/posts/'+slug+'/snapshots');if(!r.ok)throw Error('Screenshot state unavailable');return r.json()}));
|
||||
const failed=states.find(s=>s.job?.status==='failed');if(failed)throw Error(failed.job.error||'Screenshot generation failed');
|
||||
if(states.every(s=>s.job?.status==='ready'&&s.job.revision===process.env.RELEASE_SHA&&s.pages.length===8&&s.pages.every(p=>p.revision===process.env.RELEASE_SHA))){console.log('Verified 24 current server-rendered page snapshots');process.exit(0)}
|
||||
await new Promise(r=>setTimeout(r,2000));
|
||||
}
|
||||
throw Error('Screenshot publication timed out');
|
||||
Reference in New Issue
Block a user