From 06ab71d7eaca5d07cb155909a31048edb5cc3f5c Mon Sep 17 00:00:00 2001 From: Pranav Gaikwad Date: Thu, 25 Jan 2024 14:32:15 -0500 Subject: [PATCH] :bug: Fix bad yaml file (#58) (#60) Signed-off-by: Pranav Gaikwad --- .github/workflows/global-ci.yaml | 14 ++++++++++++++ .../camel3/18-java-generic-information.windup.yaml | 8 ++++---- .../technology-usage/204-integration.windup.yaml | 1 - 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/.github/workflows/global-ci.yaml b/.github/workflows/global-ci.yaml index a507c539..762f6b4d 100644 --- a/.github/workflows/global-ci.yaml +++ b/.github/workflows/global-ci.yaml @@ -22,6 +22,20 @@ jobs: - uses: actions/checkout@v3 with: path: rulesets + + - name: Validate YAML rules + working-directory: rulesets + run: | + #!/bin/bash + rc=0 + for file in $(find . -type f -name *.yaml); do + yq eval '.' "$file" > /dev/null 2>&1 || { + echo "::warning:: bad yaml file ${file}" + rc=1 + } + done + exit $rc + - uses: actions/checkout@v3 with: fetch-depth: 0 diff --git a/default/generated/camel3/18-java-generic-information.windup.yaml b/default/generated/camel3/18-java-generic-information.windup.yaml index e7c42151..0cd31236 100644 --- a/default/generated/camel3/18-java-generic-information.windup.yaml +++ b/default/generated/camel3/18-java-generic-information.windup.yaml @@ -73,7 +73,7 @@ - name: registry nameOfCaptureGroup: registry pattern: org.apache.camel.impl.(?P(PropertyPlaceholderDelegateRegistry|CompositeRegistry)) - description: 'Classes under 'org.apache.camel.impl' have been removed' + description: 'Classes under org.apache.camel.impl have been removed' effort: 1 labels: - konveyor.io/source=camel2 @@ -412,7 +412,7 @@ - name: moved nameOfCaptureGroup: moved pattern: org.apache.camel.util.(?P(AsyncProcessorHelper|AsyncProcessorConverterHelper|EndpointHelper|EventHelper|ExchangeHelper|GZIPHelper|JsonSchemaHelper|MessageHelper|PlatformHelper|PredicateAssertHelper|ResolverHelper|ResourceHelper|UnitOfWorkHelper)) - description: 'Classes under 'org.apache.camel.util' have been moved to 'org.apache.camel.support'.' + description: 'Classes under `org.apache.camel.util` have been moved to `org.apache.camel.support`.' effort: 1 labels: - konveyor.io/source=camel2 @@ -526,7 +526,7 @@ pattern: org.apache.camel.impl.ThrottlingInflightRoutePolicy - category: mandatory customVariables: [] - description: 'Classes under 'org.apache.camel.processor.idempotent' have been moved to 'org.apache.camel.support.processor.idempotent'' + description: 'Classes under `org.apache.camel.processor.idempotent` have been moved to `org.apache.camel.support.processor.idempotent`' effort: 1 labels: - konveyor.io/source=camel2 @@ -716,7 +716,7 @@ - name: class nameOfCaptureGroup: class pattern: org.apache.camel.(?P(Consume|EndpointInject|Produce)) - description: 'Replace the deprecated 'uri' attribute with 'value' in Apache Camel's Consume, EndpointInject, or Produce annotations for modernization ' + description: "Replace the deprecated `uri` attribute with `value` in Apache Camel's Consume, EndpointInject, or Produce annotations for modernization" effort: 0 labels: - konveyor.io/source=camel2 diff --git a/default/generated/technology-usage/204-integration.windup.yaml b/default/generated/technology-usage/204-integration.windup.yaml index e75488da..7d330921 100644 --- a/default/generated/technology-usage/204-integration.windup.yaml +++ b/default/generated/technology-usage/204-integration.windup.yaml @@ -3,7 +3,6 @@ labels: - konveyor.io/include=always links: [] - \ " ruleID: integration-00001 tag: - Apache Camel