md-runbook 0.19.2 → 0.19.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/cli.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -50,7 +50,7 @@ the file format (cell options, placeholders, output markers):
|
|
|
50
50
|
On GitHub Actions you can also use the action, which builds the runner from its own source:
|
|
51
51
|
|
|
52
52
|
```yaml
|
|
53
|
-
- uses: smojon/md-runbook@v0.19.
|
|
53
|
+
- uses: smojon/md-runbook@v0.19.3
|
|
54
54
|
with:
|
|
55
55
|
runbook: runbooks/smoke.md
|
|
56
56
|
report: report.html
|
package/cli.js
CHANGED
|
@@ -488,7 +488,7 @@ On GitHub Actions, a summary table is added to the job summary.
|
|
|
488
488
|
|
|
489
489
|
${jB}`),2;let B=process.env.GITHUB_ACTIONS==="true",i=!1,o=0;for(let a of n){if(!qe.existsSync(a)){e(`${a}: error: no such file`),i=!0;continue}for(let c of ga(qe.readFileSync(a,"utf8")))o++,e(ma(a,c)),B&&e(`::${c.severity} file=${a},line=${c.line+1}::${c.message.replace(/\r?\n/g," ")}`),(c.severity==="error"||t)&&(i=!0)}return e(`${i?"\u2717":"\u2713"} ${n.length} runbook${n.length===1?"":"s"} checked, ${o} problem${o===1?"":"s"}`),i?1:0}async function Il(r){if(r[0]==="lint")return yl(r.slice(1));if(r[0]==="sign")return ul(r.slice(1));if(r[0]==="verify")return cl(r.slice(1));if(r[0]==="qr")return KB(r.slice(1));if(r[0]==="link")return KB(r.slice(1),void 0,!0);if(r[0]==="audit")return Rl(r.slice(1));let e;try{e=Fl(r)}catch(w){if(!(w instanceof Ue))throw w;return process.stderr.write(`md-runbook: ${w.message}
|
|
490
490
|
|
|
491
|
-
${jB}`),2}if(e==="help")return process.stdout.write(jB),0;if(e==="version")return process.stdout.write(`0.19.
|
|
491
|
+
${jB}`),2}if(e==="help")return process.stdout.write(jB),0;if(e==="version")return process.stdout.write(`0.19.3
|
|
492
492
|
`),0;let{options:t,quiet:n}=e;if(!qe.existsSync(t.file))return process.stderr.write(`md-runbook: no such file: ${t.file}
|
|
493
493
|
`),2;let s=nl(e.notify??process.env.MD_RUNBOOK_NOTIFY_URL,e.notifyOn??process.env.MD_RUNBOOK_NOTIFY_ON);if(typeof s=="string")return process.stderr.write(`md-runbook: ${s}
|
|
494
494
|
`),2;delete process.env.MD_RUNBOOK_NOTIFY_URL;let B=async w=>{if(s)try{await sl(s.url,w)}catch(k){process.stderr.write(`md-runbook: ${k instanceof Error?k.message:String(k)}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "md-runbook",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.3",
|
|
4
4
|
"description": "Run the shell blocks of a Markdown runbook (bash, PowerShell, cmd) and keep their output in the file: checks, retries, secret redaction, HTML/PDF/JUnit reports. For CI, servers and scheduled checks.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Stephane Mojon",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "https://github.com/smojon/md-runbook.git"
|
|
9
|
+
"url": "git+https://github.com/smojon/md-runbook.git"
|
|
10
10
|
},
|
|
11
11
|
"homepage": "https://github.com/smojon/md-runbook/blob/main/docs/features/cli.md",
|
|
12
12
|
"bugs": {
|