Skip to content

Commit 9a39a0a

Browse files
jonphippsclaude
andcommitted
fix: correct YAML syntax for multi-line expressions in GitHub Actions
- Fix DOCS_ENV multi-line expressions in nx-optimized-ci.yml and nx-smart-deploy.yml - GitHub Actions requires multi-line expressions to be on a single line - This resolves the 'Invalid workflow file' error on line 11 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 5eaf3fb commit 9a39a0a

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

.github/workflows/nx-optimized-ci.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@ env:
1313
NX_RUN_GROUP: ${{ github.run_id }}
1414
HUSKY: 0
1515
# Set DOCS_ENV based on branch/event type for proper environment detection
16-
DOCS_ENV: ${{
17-
github.event_name == 'pull_request' && 'preview' ||
18-
github.ref_name == 'main' && 'production' ||
19-
github.ref_name == 'dev' && 'dev' ||
20-
'dev'
21-
}}
16+
DOCS_ENV: ${{ github.event_name == 'pull_request' && 'preview' || github.ref_name == 'main' && 'production' || github.ref_name == 'dev' && 'dev' || 'dev' }}
2217
# Fallback environment variables for sites that need them
2318
SITE_TITLE: IFLA Standards Portal
2419
SITE_TAGLINE: International Federation of Library Associations and Institutions

.github/workflows/nx-smart-deploy.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ env:
2626
HUSKY: 0
2727
NODE_OPTIONS: --max-old-space-size=4096
2828
# Set DOCS_ENV for proper environment detection (main branch = production)
29-
DOCS_ENV: ${{
30-
github.event_name == 'pull_request' && 'preview' ||
31-
'production'
32-
}}
29+
DOCS_ENV: ${{ github.event_name == 'pull_request' && 'preview' || 'production' }}
3330
# Fallback environment variables for sites that need them
3431
SITE_TITLE: IFLA Standards Portal
3532
SITE_TAGLINE: International Federation of Library Associations and Institutions

0 commit comments

Comments
 (0)