This commit is contained in:
Daniel Moses 2025-12-16 15:56:51 +00:00 committed by GitHub
commit e03e8ced80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 43 additions and 3 deletions

3
dist/index1.js vendored
View file

@ -28012,7 +28012,8 @@ async function checkTerraform () {
core.setOutput('stderr', stderr.contents);
core.setOutput('exitcode', exitCode.toString(10));
if (exitCode === 0 || exitCode === 2) {
const usingDetailedExitcode = args.filter(arg => arg.toLowerCase().endsWith('-detailed-exitcode')).length > 0;
if (exitCode === 0 || (exitCode === 2 && usingDetailedExitcode)) {
// A exitCode of 0 is considered a success
// An exitCode of 2 may be returned when the '-detailed-exitcode' option
// is passed to plan. This denotes Success with non-empty