From 42c0de174844984793a7ebdaa32e26e6d411a350 Mon Sep 17 00:00:00 2001 From: Tom Haile Date: Fri, 30 Sep 2022 14:57:50 -0500 Subject: [PATCH] needed to build in order to release --- lib/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/main.js b/lib/main.js index 953b76c2..511da813 100644 --- a/lib/main.js +++ b/lib/main.js @@ -25,6 +25,10 @@ function run() { core.setOutput('files', files); let changes = ''; for (const file of files) { + core.setOutput(`${keyword} file compare: ${file}`, file.to.indexOf(keyword)); + if (file.to.indexOf(keyword) >= 0) { + core.setFailed(message || `The code contains ${keyword}`); + } for (const chunk of file.chunks) { for (const change of chunk.changes) { if (change.add) {