Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
CoderGears committed Oct 17, 2022
1 parent b9f3795 commit 1bb2b42
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
8 changes: 5 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,11 +335,13 @@ async function run() {
var message = fs.readFileSync(NDependOut+"/comment.txt").toString();
//core.exportVariable("GITHUB_STEP_SUMMARY",NDependOut+"/comment.txt")
core.summary.addRaw(message).write() ;
}

if(ret==2 && stopifQGfailed==true)
core.setFailed("The NDepend action failed the build because at least one Quality Gate failed and stopIfQGFailed is set to true in the action options.");
if(message.indexOf("at least one Quality Gate failed")>0 && stopifQGfailed=='true')
core.setFailed("The NDepend action failed the build because at least one Quality Gate failed and stopIfQGFailed is set to true in the action options.");

}




} catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,11 +328,13 @@ async function run() {
var message = fs.readFileSync(NDependOut+"/comment.txt").toString();
//core.exportVariable("GITHUB_STEP_SUMMARY",NDependOut+"/comment.txt")
core.summary.addRaw(message).write() ;
}

if(ret==2 && stopifQGfailed==true)
core.setFailed("The NDepend action failed the build because at least one Quality Gate failed and stopIfQGFailed is set to true in the action options.");
if(message.indexOf("at least one Quality Gate failed")>0 && stopifQGfailed=='true')
core.setFailed("The NDepend action failed the build because at least one Quality Gate failed and stopIfQGFailed is set to true in the action options.");

}




} catch (error) {
Expand Down

0 comments on commit 1bb2b42

Please sign in to comment.