Skip to content

fix(ci): use grep in versioned docs step, ripgrep is not on the runner - #699

Merged
sini merged 1 commit into
mainfrom
fix/versioned-docs-ripgrep
Sep 24, 2026
Merged

sini merged 1 commit into
mainfrom
fix/versioned-docs-ripgrep

Conversation

@sini

@sini sini commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The Version step of versioned-docs.yml fails with rg: command not found. #558 moved the docs build into nix-shell and dropped the apt-get install ripgrep line, but the Version step still runs in the runner's plain shell, where rg is absent. Every tag from v0.17.0 on carries that broken step.

  • Swap rg -l -0 for GNU grep -rlZE, which the runner ships.
  • Add an optional tag input to workflow_dispatch. Re-running a tag's run, or dispatching on the tag, uses the workflow file at the tag, which still has the bug; dispatching from main with tag=v0.x.y checks out and publishes that tag with the fixed workflow. The concurrency group keys on the tag so parallel republishes don't cancel each other.

Checked: actionlint clean; the grep/sed pipeline run locally against a sample dist prefixes matching files with /<tag>/ and leaves others untouched.

After merge:

for t in v0.17.0 v0.18.0 v0.19.0; do gh workflow run versioned-docs.yml --ref main -f tag=$t; done

then run gh-pages.yml so the new artifacts are deployed.

@github-actions github-actions Bot added the allow-ci allow all CI integration tests label Sep 24, 2026
@sini
sini merged commit 9de39f6 into main Sep 24, 2026
4 checks passed
@sini
sini deleted the fix/versioned-docs-ripgrep branch September 24, 2026 21:12
sini added a commit that referenced this pull request Sep 24, 2026
…700)

## Summary

Follow-up to #699, which fixed the Version step (`rg` → `grep`). That
fix only reaches tags cut after it: re-running a tag's run, or
dispatching on the tag, uses the workflow file *at the tag*, which still
calls `rg`. v0.17.0, v0.18.0 and v0.19.0 are all in that state.

This adds an optional `tag` input to `workflow_dispatch`. Dispatching
from `main` with `tag=v0.x.y` checks out that tag and publishes it with
main's workflow. The concurrency group keys on the tag so parallel
republishes don't cancel each other. Tag pushes behave as before.

Checked: `actionlint` clean.

After merge:
```
for t in v0.17.0 v0.18.0 v0.19.0; do gh workflow run versioned-docs.yml --ref main -f tag=$t; done
```
then run `gh-pages.yml` so the new artifacts are deployed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

allow-ci allow all CI integration tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant