Skip to content

Commit

Permalink
chore: fix logic in file-diff github action (#3161)
Browse files Browse the repository at this point in the history
  • Loading branch information
castastrophe authored Sep 24, 2024
1 parent 01c7a8b commit bccce81
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/actions/file-diff/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,9 @@ async function run() {
*
* Else: report that there is no change
*/
if (
(existsSync(join(basePath, filePath, name)) && !existsSync(join(headPath, filePath, name)))
) {
if (isRemoved(headMainSize, baseMainSize)) {
data.push("🚨 deleted, moved, or renamed");
} else if (
(existsSync(join(headPath, filePath, name)) && !existsSync(join(basePath, filePath, name)))
) {
} else if (isNew(headMainSize, baseMainSize)) {
data.push("🎉 new");
} else if (
((Math.abs(difference(headMainSize, baseMainSize))) / 1000) >= 0.001
Expand Down

0 comments on commit bccce81

Please sign in to comment.