This is an automated email from the ASF dual-hosted git repository.
jshao pushed a commit to branch branch-0.6
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/branch-0.6 by this push:
new 7e00c76d0 [HOTFIX] fix(openapi): fix the env of openAPI lint plugin
(#4877)
7e00c76d0 is described below
commit 7e00c76d0c0d759e9db6b8432746ff0aa071c6b3
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sat Sep 7 16:37:03 2024 -0700
[HOTFIX] fix(openapi): fix the env of openAPI lint plugin (#4877)
### What changes were proposed in this pull request?
- update redocly/cli version from 1.5.0 to 1.23.1
- fixed the node version to 21.6.1
- fixed the npm version to 10.2.4
### Why are the changes needed?
redocly/cli failed at version 1.5.0
### Does this PR introduce _any_ user-facing change?
no
### How was this patch tested?
build CI passed
Co-authored-by: mchades <[email protected]>
---
.github/workflows/build.yml | 1 +
docs/build.gradle.kts | 9 ++++++++-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 0cf17683a..b934c4cc2 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -45,6 +45,7 @@ jobs:
- trino-connector/**
- web/**
- docs/open-api/**
+ - docs/build.gradle.kts
- build.gradle.kts
- gradle.properties
- gradlew
diff --git a/docs/build.gradle.kts b/docs/build.gradle.kts
index 16b5f2525..60b0be907 100644
--- a/docs/build.gradle.kts
+++ b/docs/build.gradle.kts
@@ -17,11 +17,18 @@
* under the License.
*/
+import com.github.gradle.node.NodeExtension
import com.github.gradle.node.npm.task.NpxTask
+configure<NodeExtension> {
+ version = "21.6.1"
+ npmVersion = "10.2.4"
+ download = true
+}
+
tasks {
val lintOpenAPI by registering(NpxTask::class) {
- command.set("@redocly/[email protected]")
+ command.set("@redocly/[email protected]")
args.set(listOf("lint", "--extends=recommended-strict",
"${project.projectDir}/open-api/openapi.yaml"))
}