Skip to content

Commit a99b2cd

Browse files
DeveloperAllyclaude
andcommitted
fix(automations): Phase A — critical workflow fixes
A1: Fix broken script paths in 4 workflows (scripts moved during restructure): - generate-ai-sitemap.yml, verify-ai-sitemap.yml → generators/content/seo/ - generate-llms-files.yml, verify-llms-files.yml → generators/ai/llm/ A2: Add use_test_branch boolean input to all generator workflows that referenced inputs.use_test_branch with no inputs block (silently broken): - generate-docs-index, generate-component-registry, generate-docs-guide-catalogs - generate-ai-companions, generate-ai-sitemap, generate-llms-files - governance-sync: add full workflow_dispatch block + fix hardcoded PR base branch - repair-governance: add use_test_branch to existing inputs block A3: freshness-monitor.yml — track globals.jsx (not globals.mdx); add 30-day extended threshold for release-cadence file (avoids permanent RED) A4: generate-llms-files.yml — fix hardcoded push target (was HEAD:docs-v2, now respects use_test_branch input); fix branch mismatch with verify workflow (both now on docs-v2 not main); remove llms-full.txt from .gitignore so workflow can commit it (script generates it — was silently dropped) A5: update-youtube-data.yml — add per-product paths to git diff/add so per-product youtubeData files are committed; remove stale n8n comment header Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a3ef762 commit a99b2cd

13 files changed

Lines changed: 59 additions & 18 deletions

‎.github/workflows/freshness-monitor.yml‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,14 @@ jobs:
3838
snippets/automations/luma/lumaEventsData.jsx \
3939
snippets/automations/showcase/showcaseData.jsx \
4040
snippets/automations/youtube/youtubeData.jsx \
41-
snippets/automations/globals/globals.mdx; do
41+
snippets/automations/globals/globals.jsx; do
42+
43+
# globals.jsx is updated on go-livepeer releases (weeks/months), not daily.
44+
# Use a 30-day extended threshold to avoid permanent RED.
45+
stale_threshold_hours=72
46+
if [ "$file" = "snippets/automations/globals/globals.jsx" ]; then
47+
stale_threshold_hours=720
48+
fi
4249
4350
if [ ! -f "$file" ]; then
4451
echo "| $file | FILE MISSING | — | 🔴 MISSING |" >> "$GITHUB_STEP_SUMMARY"
@@ -59,7 +66,7 @@ jobs:
5966
6067
if [ "$hours_stale" -le 24 ]; then
6168
status="🟢 GREEN"
62-
elif [ "$hours_stale" -le 72 ]; then
69+
elif [ "$hours_stale" -le "$stale_threshold_hours" ]; then
6370
status="🟡 YELLOW"
6471
else
6572
status="🔴 RED"

‎.github/workflows/generate-ai-companions.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ on:
99
paths:
1010
- 'v2/**/*.mdx'
1111
workflow_dispatch:
12+
inputs:
13+
use_test_branch:
14+
description: "Write to TEST_BRANCH (docs-v2-dev) instead of DEPLOY_BRANCH"
15+
type: boolean
16+
default: false
1217

1318
jobs:
1419
generate-ai-companions:

‎.github/workflows/generate-ai-sitemap.yml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
branches:
88
- main
99
workflow_dispatch:
10+
inputs:
11+
use_test_branch:
12+
description: "Write to TEST_BRANCH (docs-v2-dev) instead of DEPLOY_BRANCH"
13+
type: boolean
14+
default: false
1015

1116
jobs:
1217
generate-ai-sitemap:
@@ -28,7 +33,7 @@ jobs:
2833
run: cd tools && npm install
2934

3035
- name: Generate AI sitemap
31-
run: node operations/scripts/generate-ai-sitemap.js --write
36+
run: node operations/scripts/generators/content/seo/generate-ai-sitemap.js --write
3237

3338
- name: Check for changes
3439
id: git-check

‎.github/workflows/generate-component-registry.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ on:
99
paths:
1010
- 'snippets/components/**/*.jsx'
1111
workflow_dispatch:
12+
inputs:
13+
use_test_branch:
14+
description: "Write to TEST_BRANCH (docs-v2-dev) instead of DEPLOY_BRANCH"
15+
type: boolean
16+
default: false
1217

1318
jobs:
1419
generate-component-registry:

‎.github/workflows/generate-docs-guide-catalogs.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ on:
1414
- 'docs.json'
1515
- 'v2/index.mdx'
1616
workflow_dispatch:
17+
inputs:
18+
use_test_branch:
19+
description: "Write to TEST_BRANCH (docs-v2-dev) instead of DEPLOY_BRANCH"
20+
type: boolean
21+
default: false
1722

1823
jobs:
1924
generate-docs-guide-catalogs:

‎.github/workflows/generate-docs-index.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
branches:
88
- main
99
workflow_dispatch:
10+
inputs:
11+
use_test_branch:
12+
description: "Write to TEST_BRANCH (docs-v2-dev) instead of DEPLOY_BRANCH"
13+
type: boolean
14+
default: false
1015

1116
jobs:
1217
generate-docs-index:

‎.github/workflows/generate-llms-files.yml‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
push:
55
branches: [docs-v2]
66
workflow_dispatch:
7+
inputs:
8+
use_test_branch:
9+
description: "Write to TEST_BRANCH (docs-v2-dev) instead of DEPLOY_BRANCH"
10+
type: boolean
11+
default: false
712

813
permissions:
914
contents: write
@@ -23,12 +28,12 @@ jobs:
2328
- run: cd tools && npm ci
2429

2530
- name: Generate llms files
26-
run: node operations/scripts/generate-llms-files.js --write
31+
run: node operations/scripts/generators/ai/llm/generate-llms-files.js --write
2732

2833
- name: Commit if changed
2934
run: |
3035
git config user.name "github-actions[bot]"
3136
git config user.email "github-actions[bot]@users.noreply.github.com"
3237
git add llms.txt llms-full.txt
3338
git diff --cached --quiet || git commit -m "chore: regenerate llms.txt [skip ci]"
34-
git push origin HEAD:docs-v2
39+
git push origin HEAD:${{ inputs.use_test_branch == 'true' && vars.TEST_BRANCH || vars.DEPLOY_BRANCH }}

‎.github/workflows/governance-sync.yml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ on:
1919
- 'workspace/scripts/**'
2020
- 'snippets/automations/**'
2121
- 'workspace/reports/script-classifications.json'
22+
workflow_dispatch:
23+
inputs:
24+
use_test_branch:
25+
description: "Write to TEST_BRANCH (docs-v2-dev) instead of DEPLOY_BRANCH"
26+
type: boolean
27+
default: false
2228

2329
permissions:
2430
contents: write
@@ -60,6 +66,6 @@ jobs:
6066
body: |
6167
Automated post-merge governance sync triggered by ${{ github.sha }}.
6268
See `workspace/reports/repo-ops/REPAIR_REPORT_LATEST.md` for details.
63-
base: docs-v2
69+
base: ${{ inputs.use_test_branch == 'true' && vars.TEST_BRANCH || vars.DEPLOY_BRANCH }}
6470
delete-branch: true
6571
labels: governance, automated

‎.github/workflows/repair-governance.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ on:
1313
- fix
1414
- report-only
1515
default: dry-run
16+
use_test_branch:
17+
description: "Write to TEST_BRANCH (docs-v2-dev) instead of DEPLOY_BRANCH"
18+
type: boolean
19+
default: false
1620

1721
permissions:
1822
contents: write

‎.github/workflows/update-youtube-data.yml‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
# NOTE: THIS GITHUB ACTION WILL ONLY RUN ON MAIN BRANCH.
2-
# N8N IS BEING USING AS AN ALTERNATIVE UNTIL THEN.
3-
# N8N workflow is in /snippets/automations/n8n-workflows/youtube-to-mintlify.json
4-
# You will need to Add YOUTUBE_API_KEY secret in repo settings (Settings → Secrets → Actions) for this github action to work.
5-
61
name: Update YouTube Data
72

83
on:
@@ -41,13 +36,13 @@ jobs:
4136
- name: Check for changes
4237
id: git-check
4338
run: |
44-
git diff --exit-code snippets/automations/youtube/youtubeData.jsx || echo "changed=true" >> $GITHUB_OUTPUT
39+
git diff --exit-code snippets/automations/youtube/youtubeData.jsx snippets/automations/solutions/daydream/youtubeData.jsx snippets/automations/solutions/livepeer-studio/youtubeData.jsx || echo "changed=true" >> $GITHUB_OUTPUT
4540
4641
- name: Commit and push if changed
4742
if: steps.git-check.outputs.changed == 'true'
4843
run: |
4944
git config user.name "GitHub Actions Bot"
5045
git config user.email "actions@github.com"
51-
git add snippets/automations/youtube/youtubeData.jsx
46+
git add snippets/automations/youtube/youtubeData.jsx snippets/automations/solutions/daydream/youtubeData.jsx snippets/automations/solutions/livepeer-studio/youtubeData.jsx
5247
git commit -m "Update YouTube videos - $(date -u +"%Y-%m-%dT%H:%M:%SZ")"
5348
git push

0 commit comments

Comments
 (0)