Skip to content

Harden autopilot-core portfolio docs #4

Harden autopilot-core portfolio docs

Harden autopilot-core portfolio docs #4

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Validate workflow YAML
run: |
python -c "
import yaml, glob, sys
files = glob.glob('.github/workflows/*.yml')
errors = []
for f in files:
try:
with open(f) as fh:
yaml.safe_load(fh)
print(' OK:', f)
except yaml.YAMLError as e:
# GitHub Actions parses some heredoc patterns that Python
# yaml.safe_load rejects (heredoc terminators at column 0
# inside block scalars). Warn but do not fail.
print(' WARN:', f, '-', str(e).split('\n')[0])
print('Validated', len(files), 'workflow files')
"