Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ on:
- '.github/workflows/pr-validate.yml'
- '.github/workflows/quarkus-master-cron.yaml'
- '.github/workflows/synchronize-dependabot-branch.yaml'
- '.github/workflows/pr-doc-validation.yaml'
- 'docs/antora.yml'
- 'release-utils/**'
pull_request:
Expand Down Expand Up @@ -73,6 +74,7 @@ on:
- '.github/workflows/quarkus-lts-ci-build.yaml'
- '.github/workflows/quarkus-master-cron.yaml'
- '.github/workflows/synchronize-dependabot-branch.yaml'
- '.github/workflows/pr-doc-validation.yaml'
- 'docs/antora.yml'
- 'release-utils/**'

Expand Down
60 changes: 60 additions & 0 deletions .github/workflows/pr-doc-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

name: PR doc validation
on:
pull_request:
branches:
- main
- "[0-9]+.[0-9]+.x"
paths:
- '**.adoc'
- '!**/README.adoc'

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

permissions:
contents: read

jobs:
check-doc:
if: github.repository == 'apache/camel-quarkus'
runs-on: ubuntu-latest
steps:
- name: Checkout camel-quarkus repo
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
submodules: recursive
path: camel-quarkus
- name: Checkout camel-website repo
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
repository: apache/camel-website
path: camel-website
ref: main

- name: Validate documentation
shell: bash
run: |
cd camel-website
yarn install
cd ../camel-quarkus/docs
yarn install
./local-build.sh quick
1 change: 1 addition & 0 deletions .github/workflows/pr-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ on:
- '.github/workflows/quarkus-lts-ci-build.yaml'
- '.github/workflows/quarkus-master-cron.yaml'
- '.github/workflows/synchronize-dependabot-branch.yaml'
- '.github/workflows/pr-doc-validation.yaml'
- 'docs/antora.yml'
- 'release-utils/**'

Expand Down