Skip to content

feat: add workflow to validate build in submodules#14

Merged
jn-av merged 1 commit intomainfrom
add-workflow-for-build-in-submodules
Mar 18, 2026
Merged

feat: add workflow to validate build in submodules#14
jn-av merged 1 commit intomainfrom
add-workflow-for-build-in-submodules

Conversation

@jn-av
Copy link
Copy Markdown
Member

@jn-av jn-av commented Mar 18, 2026

Summary

Currently, provider repos can push docs that break the build on the docs site. The workflow added
in this PR can be included in the submodules to test the build whenever changes to the docs happen, reducing the effort to fix things later

Workflow Example

The workflow on provider repos could look like this:

name: Test Docs Hub Build
on:
  pull_request:
    paths:
      - 'docs/**'
  push:
    branches:
      - main
    paths:
      - 'docs/**'
jobs:
  test-docs-hub-build-pr:
    if: github.event_name == 'pull_request'
    uses: SAP/crossplane-provider-docs/.github/workflows/test-submodule-build.yml@main
    with:
      provider-repo: ${{ github.event.pull_request.head.repo.full_name }}
      provider-ref: ${{ github.event.pull_request.head.sha }}
      submodule-path: docs/crossplane-provider-btp   # adjust per provider
  test-docs-hub-build-push:
    if: github.event_name == 'push'
    uses: SAP/crossplane-provider-docs/.github/workflows/test-submodule-build.yml@main
    with:
      provider-repo: ${{ github.repository }}
      provider-ref: ${{ github.sha }}
      submodule-path: docs/crossplane-provider-btp   # adjust per provider

This PR needs to be merged first to test the workflow out.

@jn-av jn-av merged commit 604b446 into main Mar 18, 2026
5 checks passed
@jn-av jn-av deleted the add-workflow-for-build-in-submodules branch March 18, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants