Changed to use ctx.actions.run_shell instead of ctx.action

The 'action' attribute was depricated and finally removed probably at
the Bazel 3.4.0 release.

Change-Id: I2aafae3e780b8e68a3ad9a162d62210743f9f2fd
diff --git a/tools/build/bazel/deps_files.bzl b/tools/build/bazel/deps_files.bzl
index 24c65ca..b24b3c2 100644
--- a/tools/build/bazel/deps_files.bzl
+++ b/tools/build/bazel/deps_files.bzl
@@ -9,7 +9,7 @@
         "echo %s >>  %s" % (",".join(dep_list), output.path),
     ]
 
-    ctx.action(
+    ctx.actions.run_shell(
         inputs = ctx.files.deps,
         outputs = [output],
         progress_message = "Generating deps file paths for %s" % ctx.attr.name,
diff --git a/tools/build/bazel/java_sources.bzl b/tools/build/bazel/java_sources.bzl
index 1381a05..0220919 100644
--- a/tools/build/bazel/java_sources.bzl
+++ b/tools/build/bazel/java_sources.bzl
@@ -29,7 +29,7 @@
         "[ -n \"$dir\" -a -d \"$dir\" ] && %s cf %s -C $dir ." % (jar_path, outjar.path),
     ]
 
-    ctx.action(
+    ctx.actions.run_shell(
         inputs = ctx.files.srcs,
         outputs = [outjar],
         progress_message = "Generating source jar for %s" % ctx.attr.name,
diff --git a/tools/build/bazel/javadoc.bzl b/tools/build/bazel/javadoc.bzl
index 6493160..b9f514c 100644
--- a/tools/build/bazel/javadoc.bzl
+++ b/tools/build/bazel/javadoc.bzl
@@ -36,7 +36,7 @@
         "%s cf %s -C %s ." % (jar_exe_path, outjar.path, dir),
     ]
 
-    ctx.action(
+    ctx.actions.run_shell(
         inputs = ctx.files.srcs + ctx.files.deps,
         outputs = [outjar],
         progress_message = "Generating javadocs jar for %s" % ctx.attr.name,
diff --git a/tools/build/bazel/minimal_jar.bzl b/tools/build/bazel/minimal_jar.bzl
index 6615ec9..2ee40e2 100644
--- a/tools/build/bazel/minimal_jar.bzl
+++ b/tools/build/bazel/minimal_jar.bzl
@@ -22,7 +22,7 @@
         "mkdir readme && touch readme/README && %s cf %s readme/README" % (jar_exe_path, outjar.path),
     ]
 
-    ctx.action(
+    ctx.actions.run_shell(
         outputs = [outjar],
         progress_message = "Generating minimal jar for %s" % ctx.attr.name,
         command = ";\n".join(cmd),