Skip to content

Commit

Permalink
Revert "fix: use diffTemplate -> fullDiff"
Browse files Browse the repository at this point in the history
This reverts commit d3faa61.
  • Loading branch information
k-asm committed Feb 22, 2024
1 parent 1753949 commit 5db3d49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as core from '@actions/core';
import {removeEscapeCharacters, sh, sleep} from './shell';
import * as fs from 'fs';
import {fullDiff, formatDifferences, ResourceImpact, TemplateDiff} from '@aws-cdk/cloudformation-diff';
import {diffTemplate, formatDifferences, ResourceImpact, TemplateDiff} from '@aws-cdk/cloudformation-diff';
import {PassThrough} from 'stream';
import {randomUUID} from 'crypto';
import {
Expand Down Expand Up @@ -63,7 +63,7 @@ async function run(): Promise<void> {
const templateDiff: {[k: string]: TemplateDiff} = {};
let editedStackCount = 0;
for (const stackName of stackNames) {
templateDiff[stackName] = fullDiff(cfnTemplates[stackName] ?? {}, stackTemplates[stackName]);
templateDiff[stackName] = diffTemplate(cfnTemplates[stackName] ?? {}, stackTemplates[stackName]);
if (templateDiff[stackName].differenceCount) editedStackCount += 1;
}
core.setOutput('edited-stack-count', editedStackCount);
Expand Down

0 comments on commit 5db3d49

Please sign in to comment.