Skip to content
Open
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
3 changes: 2 additions & 1 deletion .github/workflows/check-backstage-compatibility.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ jobs:
echo "OVERLAY_REPO=${{ github.repository }}" >> $GITHUB_OUTPUT
fi

- uses: actions/checkout@v4.2.2
name: Checkout overlay repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ steps.set-overlay-repo-ref.outputs.OVERLAY_REPO_REF }}
repository: ${{ steps.set-overlay-repo.outputs.OVERLAY_REPO }}
Expand Down
32 changes: 27 additions & 5 deletions .github/workflows/export-dynamic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,15 @@ on:
value: '${{ jobs.export.outputs.published-exports }}'
failed-exports:
value: '${{ jobs.export.outputs.failed-exports }}'
metadata-validation-passed:
description: Whether the metadata validation passed (true/false)
value: '${{ jobs.export.outputs.metadata-validation-passed }}'
metadata-validation-errors:
description: JSON array of metadata validation errors, empty array if validation passed
value: '${{ jobs.export.outputs.metadata-validation-errors }}'
metadata-validation-error-count:
description: Number of metadata validation errors found
value: '${{ jobs.export.outputs.metadata-validation-error-count }}'

jobs:
export:
Expand All @@ -136,6 +145,9 @@ jobs:
outputs:
published-exports: '${{ steps.export-dynamic.outputs.published-exports }}'
failed-exports: '${{ steps.export-dynamic.outputs.failed-exports }}'
metadata-validation-passed: '${{ steps.validate-metadata.outputs.validation-passed }}'
metadata-validation-errors: '${{ steps.validate-metadata.outputs.validation-errors }}'
metadata-validation-error-count: '${{ steps.validate-metadata.outputs.validation-error-count }}'

steps:
- name: Validate Inputs
Expand All @@ -155,15 +167,15 @@ jobs:
}

- name: Checkout plugins repository ${{ inputs.plugins-repo }}
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
if: ${{ inputs.plugins-root == '.' }}
with:
repository: ${{ inputs.plugins-repo }}
ref: ${{ inputs.plugins-repo-ref }}
path: source-repo

- name: Checkout plugins repository ${{ inputs.plugins-repo }} at ${{ inputs.plugins-root }}
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
if: ${{ inputs.plugins-root != '.' }}
with:
repository: ${{ inputs.plugins-repo }}
Expand All @@ -177,7 +189,7 @@ jobs:
path: source-repo

- name: Checkout overlay repository ${{ inputs.overlay-repo }} in the 'overlay-repo' sub-folder
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
repository: ${{ inputs.overlay-repo }}
ref: ${{ inputs.overlay-repo-ref }}
Expand Down Expand Up @@ -220,8 +232,8 @@ jobs:
sudo apt-get update
sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev

- name: Use node.js ${{ inputs.node-version }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
- name: Setup Node.js ${{ inputs.node-version }}
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version: ${{ inputs.node-version }}
registry-url: https://registry.npmjs.org/ # Needed for auth
Expand Down Expand Up @@ -287,6 +299,16 @@ jobs:
image-tag-prefix: ${{ inputs.image-tag-prefix }}
last-publish-commit: ${{ inputs.last-publish-commit }}

- name: Validate Catalog Metadata
if: ${{ success() && steps.export-dynamic.outputs.workspace-skipped-unchanged-since == 'false' }}
id: validate-metadata
uses: redhat-developer/rhdh-plugin-export-utils/validate-metadata@main
with:
overlay-root: ${{ github.workspace }}/overlay-repo/${{inputs.overlay-root}}
plugins-root: ${{ github.workspace }}/source-repo/${{inputs.plugins-root}}
image-repository-prefix: ${{ steps.set-image-tag-name.outputs.IMAGE_REPOSITORY_PREFIX }}
image-tag-prefix: ${{ inputs.image-tag-prefix }}

- name: Set artifacts name suffix
id: set-artifacts-name-suffix
shell: bash
Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/export-workspaces-as-dynamic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,18 @@ on:

failed-exports:
value: '${{ jobs.export.outputs.failed-exports }}'

metadata-validation-passed:
description: Whether the metadata validation passed (true/false)
value: '${{ jobs.export.outputs.metadata-validation-passed }}'

metadata-validation-errors:
description: JSON array of metadata validation errors
value: '${{ jobs.export.outputs.metadata-validation-errors }}'

metadata-validation-error-count:
description: Number of metadata validation errors found
value: '${{ jobs.export.outputs.metadata-validation-error-count }}'

jobs:
prepare:
Expand Down Expand Up @@ -131,7 +143,8 @@ jobs:
echo "OVERLAY_REPO=${{ github.repository }}" >> $GITHUB_OUTPUT
fi

- uses: actions/checkout@v4.2.2
- name: Checkout overlay repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ steps.set-overlay-repo-ref.outputs.OVERLAY_REPO_REF }}
repository: ${{ steps.set-overlay-repo.outputs.OVERLAY_REPO }}
Expand Down
Loading