[INFRA-18734] Jenkins builds fail on email notifications due to unknown user ID "github"
diff --git a/vars/asfMavenTlpPlgnBuild.groovy b/vars/asfMavenTlpPlgnBuild.groovy
index ae610ef..a3e9007 100644
--- a/vars/asfMavenTlpPlgnBuild.groovy
+++ b/vars/asfMavenTlpPlgnBuild.groovy
@@ -99,7 +99,10 @@
       echo "***** FAST FAILURE *****\n\nFast failure triggered by ${taskContext.failingFast}\n\n***** FAST FAILURE *****"
     }
     stage("Notifications") {
-      jenkinsNotify()
+      def isFirstBuild = currentBuild == null || currentBuild.changeSets == null
+	  def authors = isFirstBuild ? [] : currentBuild.changeSets.last().toList().collect { it.author.toString() }.unique()
+	  println("The author of the last change: ${authors}")
+	  if (isFirstBuild || !authors.contains('github')) jenkinsNotify()
     }
   }
 }
diff --git a/vars/asfMavenTlpStdBuild.groovy b/vars/asfMavenTlpStdBuild.groovy
index b0d1d0d..d906adf 100644
--- a/vars/asfMavenTlpStdBuild.groovy
+++ b/vars/asfMavenTlpStdBuild.groovy
@@ -179,7 +179,10 @@
       echo "***** FAST FAILURE *****\n\nFast failure triggered by ${failingFast}\n\n***** FAST FAILURE *****"
     }
     stage("Notifications") {
-      jenkinsNotify()
+      def isFirstBuild = currentBuild == null || currentBuild.changeSets == null
+	  def authors = isFirstBuild ? [] : currentBuild.changeSets.last().toList().collect { it.author.toString() }.unique()
+	  println("The author of the last change: ${authors}")
+	  if (isFirstBuild || !authors.contains('github')) jenkinsNotify()
     }
   }
 }