[rhaiis] Add custom model and workload stubs for dashboard overrides #2082
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Check repository consistency | |
| name: Check consistency | |
| on: | |
| # Triggers the workflow on push or pull request events but only for the main branch | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| schedule: | |
| - cron: '0 */8 * * *' | |
| jobs: | |
| check_forge_consistency: | |
| runs-on: ubuntu-latest | |
| env: | |
| PYTHONPATH: ${{ github.workspace }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - uses: ./.github/steps/prepare_minimal_ubuntu_image | |
| - name: Check that no symlink is broken | |
| run: bin/run_ansible_toolbox.py repo validate_no_broken_link | |
| - name: Check that all source files end with EOL | |
| run: | | |
| # Find all source files and check they end with newline | |
| files_without_eol=() | |
| while IFS= read -r -d '' file; do | |
| if [[ -s "$file" ]] && [[ -n "$(tail -c1 "$file")" ]]; then | |
| files_without_eol+=("$file") | |
| fi | |
| done < <(find . -path './.git' -prune -o \( -name "*.py" -o -name "*.yml" -o -name "*.yaml" -o -name "*.json" -o -name "*.md" \) -type f -print0) | |
| if [[ ${#files_without_eol[@]} -gt 0 ]]; then | |
| echo "❌ Files missing final newline:" | |
| printf '%s\n' "${files_without_eol[@]}" | |
| echo "Fix with: echo >> filename" | |
| exit 1 | |
| fi | |
| echo "✅ All source files end with newline" |