Skip to content

[docs-agent] Add workflow_dispatch to changelog and SDK-refs indexers - #1483

Merged
dslovinsky merged 2 commits into
mainfrom
docs/index-workflows-add-workflow-dispatch
Jul 27, 2026
Merged

[docs-agent] Add workflow_dispatch to changelog and SDK-refs indexers#1483
dslovinsky merged 2 commits into
mainfrom
docs/index-workflows-add-workflow-dispatch

Conversation

@alchemy-bot

Copy link
Copy Markdown
Contributor

Summary

Follow-up to the 2026-07-27 search outage (DOCS-163). Two of the three Algolia indexer workflows could not be triggered manually:

  • index-changelog.yml — fired only on push to content/changelog/**, so re-running it required a real content commit.
  • index-sdk-references.yml — fired only on repository_dispatch from alchemyplatform/aa-sdk, so it had no path from the GitHub Actions UI.

This adds workflow_dispatch: {} to both, matching the shape already used by index-main-content.yml.

For index-sdk-references.yml, the job's existing if: guard would skip a workflow_dispatch run because github.event.client_payload.source is null on a manual dispatch. The guard is relaxed to github.event_name == 'workflow_dispatch' || github.event.client_payload.source == 'alchemyplatform/aa-sdk' so:

  • workflow_dispatch (which already requires Actions: write on the repo, so caller identity is trusted) runs the job unconditionally.
  • repository_dispatch still requires the source == 'alchemyplatform/aa-sdk' payload, so cross-repo dispatch is not opened up.

Linear

DOCS-164 — https://linear.app/alchemyapi/issue/DOCS-164/add-workflow-dispatch-to-changelog-and-sdk-refs-indexer-workflows

Requested by

@dslovinsky (via Slack thread)

Both workflows previously had no manual trigger path:

* index-changelog.yml only fires on push to content/changelog/**, so
  it cannot be re-run without a real content commit.
* index-sdk-references.yml only fires on repository_dispatch from the
  aa-sdk repo.

This came out of the 2026-07-27 search outage (DOCS-163), where the
production Algolia index was wiped externally and neither of these
indexers could be re-triggered from the GitHub UI. Adding
workflow_dispatch keeps the existing security guard for
repository_dispatch on index-sdk-references (still restricted to
alchemyplatform/aa-sdk source) while letting maintainers with Actions:
write dispatch either indexer manually.

Matches the shape already used by index-main-content.yml.

Refs DOCS-164

Requested-by: @dslovinsky
@alchemy-bot
alchemy-bot requested a review from a team as a code owner July 27, 2026 15:16
@github-actions

github-actions Bot commented Jul 27, 2026

Copy link
Copy Markdown

🔗 Preview Mode

Name Status Preview Updated (UTC)
Alchemy Docs ✅ Ready 🔗 Visit Preview Jul 27, 2026, 3:51 PM

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: db652ee850

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread .github/workflows/index-changelog.yml
The indexer scripts hard-code --branch=main and write to the
main_alchemy_docs Algolia index. Without a ref guard, a workflow_dispatch
run from a feature branch or tag would push that branch's content into
the production index. Add if: github.ref == 'refs/heads/main' to both
jobs; keep the existing repository_dispatch source restriction on
index-sdk-references.

Addresses codex review comment on PR #1483:
#1483 (comment)

Refs DOCS-164

Requested-by: @dslovinsky
@dslovinsky
dslovinsky merged commit 21830ec into main Jul 27, 2026
10 of 13 checks passed
@dslovinsky
dslovinsky deleted the docs/index-workflows-add-workflow-dispatch branch July 27, 2026 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants