Repository navigation
docs-quality-sweep master: pass --repo to gh workflow run - #6272
Merged
Merged
Conversation
The fan-out step in the master dispatcher fails on the very first sub-workflow with `fatal: not a git repository (or any of the parent directories): .git`. Cause: `gh workflow run` resolves the target repository from the local git remote when no `--repo` flag is provided, but the master skips checkout (it's a thin dispatch step that doesn't need the source tree). Without a `.git` directory the command exits 1. Failing run: https://github.com/elastic/docs-content/actions/runs/25373495676/job/74402614432 Pass `--repo "${{ github.repository }}"` to every `gh workflow run` call so the target repo is explicit and gh CLI doesn't try to infer it from a non-existent local checkout. Same effect as adding `actions/checkout@v6` to the step but cheaper (no clone, no filesystem I/O). Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Contributor
Elastic Docs AI PR menuCheck the box to run an AI review for this pull request.
Powered by GitHub Agentic Workflows and docs-actions. For more information, reach out to the docs team. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The master dispatcher introduced in #6271 fails on the first
gh workflow runinvocation:```
→ dispatching docs-frontmatter-sweep.yml
failed to run git: fatal: not a git repository (or any of the parent directories): .git
##[error]Process completed with exit code 1.
```
Failing run: https://github.com/elastic/docs-content/actions/runs/25373495676/job/74402614432
Cause
gh workflow runresolves the target repository from the local git remote when no--repoflag is given. The master skipsactions/checkoutdeliberately — it's a thin dispatcher that doesn't need the source tree — so there's no.gitdirectory and the command exits 1 before doing anything.Fix
Add
--repo "${{ github.repository }}"to all fourgh workflow runinvocations (thefire_with_default_inputshelper plus the typos / staleness / coherence blocks). The runtime expression${{ github.repository }}resolves toelastic/docs-content, so gh CLI skips the local-remote inference entirely.Same effect as adding
actions/checkout@v6to the step but cheaper — no clone, no filesystem I/O for what's a sub-second dispatch script.Test plan
docs-quality-sweep.ymlwithsweeps=typos. Expect:→ dispatching docs-typos-sweep.ymlprinted (no "fatal: not a git repository");Docs typos sweeprun appears in the Actions tab.sweeps=all. Expect seven sub-runs in the Actions tab, each independent.🤖 Generated with Claude Code