From e4d18c8000caa71acbe09fe34f596304ffc718f3 Mon Sep 17 00:00:00 2001 From: Hermes coder Date: Sat, 4 Jul 2026 18:45:35 +0000 Subject: [PATCH] ci(sync-docs): create 'automated' label before opening sync PR The Sync Docs workflow run #8 failed because it tried to add the 'automated' label to the auto-sync PR, but that label does not exist in the repo (only the default GitHub labels are present). Fix: ensure the label exists before PR creation. gh label create is idempotent here (guarded with 2>/dev/null || true so a subsequent run that finds the existing label won't fail). Closes CI failure on commit a77ae36c. --- .github/workflows/sync-docs.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/sync-docs.yml b/.github/workflows/sync-docs.yml index 9c313c3..09dafe1 100644 --- a/.github/workflows/sync-docs.yml +++ b/.github/workflows/sync-docs.yml @@ -73,6 +73,9 @@ jobs: gh pr edit "${EXISTING}" --title "${PR_TITLE}" --body "${PR_BODY}" echo "Updated existing PR #${EXISTING}" else + # Create the 'automated' label if it doesn't exist so PR creation + # does not fail. The label is optional; fall back gracefully. + gh label create automated --description "Automated PR opened by a GitHub Actions workflow" --color 0E8A16 2>/dev/null || true gh pr create --head "${SYNC_BRANCH}" --base master \ --title "${PR_TITLE}" --body "${PR_BODY}" \ --label "documentation" --label "automated"