From 0eb9fa7312735dba552f10924827e75edfc4336d Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Wed, 12 Oct 2022 14:38:30 -0400 Subject: [PATCH] fix: try only to PR files with NODE_VERSION change --- build-automation.mjs | 2 +- functions.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build-automation.mjs b/build-automation.mjs index d29432638..b2dac90ad 100644 --- a/build-automation.mjs +++ b/build-automation.mjs @@ -97,7 +97,7 @@ export default async function(github) { process.exit(0); } } - const { stdout } = (await exec(`git diff`)); + const { stdout } = (await exec(`git diff -G NODE_VERSION`)); console.log(stdout); return updatedVersions.join(', '); diff --git a/functions.sh b/functions.sh index df1883f73..1c1ce0a3e 100755 --- a/functions.sh +++ b/functions.sh @@ -340,7 +340,7 @@ function images_updated() { IFS=',' get_versions )" - images_changed=$(git diff --name-only "${commit_range}" "${versions[@]}") + images_changed=$(git diff --name-only "${commit_range}" "${versions[@]}" -G NODE_VERSION) if [ -z "${images_changed}" ]; then return 1