Skip to content

Commit 0eb9fa7

Browse files
committed
fix: try only to PR files with NODE_VERSION change
1 parent 5fd8244 commit 0eb9fa7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build-automation.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export default async function(github) {
9797
process.exit(0);
9898
}
9999
}
100-
const { stdout } = (await exec(`git diff`));
100+
const { stdout } = (await exec(`git diff -G NODE_VERSION`));
101101
console.log(stdout);
102102

103103
return updatedVersions.join(', ');

functions.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ function images_updated() {
340340
IFS=','
341341
get_versions
342342
)"
343-
images_changed=$(git diff --name-only "${commit_range}" "${versions[@]}")
343+
images_changed=$(git diff --name-only "${commit_range}" "${versions[@]}" -G NODE_VERSION)
344344

345345
if [ -z "${images_changed}" ]; then
346346
return 1

0 commit comments

Comments
 (0)