Problem Description
The docs.yml workflow has an invalid syntax error that prevents it from running:
Invalid workflow file: .github/workflows/docs.yml#L1
(Line: 66, Col: 9): Unrecognized function: 'hashFiles'. Located at position 1 within expression: hashFiles('docs/conf.py') != ''
Root Cause
The workflow is trying to use the hashFiles function in a conditional expression, but the syntax is incorrect.
Current Code (Line 66)
if: hashFiles('docs/conf.py') != ''
Proposed Solution
The hashFiles function should be used with proper GitHub Actions expression syntax:
Option 1: Use proper expression syntax
if: ${{ hashFiles('docs/conf.py') != '' }}
Option 2: Check for file existence differently
- name: Check if docs exist
id: check_docs
run: |
if [ -f docs/conf.py ]; then
echo "docs_exist=true" >> $GITHUB_OUTPUT
else
echo "docs_exist=false" >> $GITHUB_OUTPUT
fi
- name: Build documentation
if: steps.check_docs.outputs.docs_exist == 'true'
# ... rest of the step
Option 3: Use paths filter (if checking for changes)
on:
push:
paths:
- 'docs/**'
- '*.md'
Impact
- Documentation builds are failing for all PRs
- CI Gates may fail due to this workflow error
- Documentation is not being validated
Test Case
Found in PR #16 where the workflow fails immediately with this syntax error.
Priority
High - This breaks documentation builds for all PRs and may affect release documentation.
Files Affected
.github/workflows/docs.yml (line 66)
Problem Description
The docs.yml workflow has an invalid syntax error that prevents it from running:
Root Cause
The workflow is trying to use the
hashFilesfunction in a conditional expression, but the syntax is incorrect.Current Code (Line 66)
Proposed Solution
The
hashFilesfunction should be used with proper GitHub Actions expression syntax:Option 1: Use proper expression syntax
Option 2: Check for file existence differently
Option 3: Use paths filter (if checking for changes)
Impact
Test Case
Found in PR #16 where the workflow fails immediately with this syntax error.
Priority
High - This breaks documentation builds for all PRs and may affect release documentation.
Files Affected
.github/workflows/docs.yml(line 66)