Skip to content

Commit a6ab1f8

Browse files
claudehyperpolymath
authored andcommitted
fix(ci): indent eclexiaiser-validate heredoc into run block scalar
The python3 -c heredoc body in the eclexiaiser-validate step was written flush-left (column 0), which terminated the `run: |` block scalar and made the entire workflow fail to start with "Invalid workflow file". Indent every line of the Python body (and the closing `"`) by the block's 10-space base indent, preserving the Python's own 4-space relative nesting. Pure whitespace change; `yaml.safe_load` now parses the file cleanly. https://claude.ai/code/session_013wg3Mtq2QFhYi4XVw1Z6z7
1 parent 4ec8927 commit a6ab1f8

1 file changed

Lines changed: 20 additions & 20 deletions

File tree

.github/workflows/dogfood-gate.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -263,26 +263,26 @@ jobs:
263263
264264
# Validate TOML structure using Python 3.11+ tomllib
265265
python3 -c "
266-
import tomllib, sys
267-
with open('eclexiaiser.toml', 'rb') as f:
268-
data = tomllib.load(f)
269-
project = data.get('project', {})
270-
if not project.get('name', '').strip():
271-
print('ERROR: project.name is required', file=sys.stderr)
272-
sys.exit(1)
273-
functions = data.get('functions', [])
274-
if not functions:
275-
print('ERROR: at least one [[functions]] entry is required', file=sys.stderr)
276-
sys.exit(1)
277-
for fn in functions:
278-
if not fn.get('name', '').strip():
279-
print('ERROR: function name cannot be empty', file=sys.stderr)
280-
sys.exit(1)
281-
if not fn.get('source', '').strip():
282-
print(f'ERROR: function {fn[\"name\"]} has no source path', file=sys.stderr)
283-
sys.exit(1)
284-
print(f'Valid: {project[\"name\"]} ({len(functions)} function(s))')
285-
" || {
266+
import tomllib, sys
267+
with open('eclexiaiser.toml', 'rb') as f:
268+
data = tomllib.load(f)
269+
project = data.get('project', {})
270+
if not project.get('name', '').strip():
271+
print('ERROR: project.name is required', file=sys.stderr)
272+
sys.exit(1)
273+
functions = data.get('functions', [])
274+
if not functions:
275+
print('ERROR: at least one [[functions]] entry is required', file=sys.stderr)
276+
sys.exit(1)
277+
for fn in functions:
278+
if not fn.get('name', '').strip():
279+
print('ERROR: function name cannot be empty', file=sys.stderr)
280+
sys.exit(1)
281+
if not fn.get('source', '').strip():
282+
print(f'ERROR: function {fn[\"name\"]} has no source path', file=sys.stderr)
283+
sys.exit(1)
284+
print(f'Valid: {project[\"name\"]} ({len(functions)} function(s))')
285+
" || {
286286
echo "::error file=eclexiaiser.toml::Invalid eclexiaiser.toml — see step output for details"
287287
exit 1
288288
}

0 commit comments

Comments
 (0)