Skip to content

Conversation

@david-hamilton-glean
Copy link
Member

Remove auto-trigger-code-samples and instead run generate-code-samples every 4 hours.

The previous setup would trigger generate-code-samples, but none of the downstream workflows (the next one being .github/workflows/deploy-pages.yml).

The rules for GitHub are as follows:

If workflow A triggers workflow B in a way that is "automated", then B will run but its completion will not trigger downstream workflows C.

"automated" here is determined by the use of GITHUB_TOKEN

gh workflow run generate-code-samples.yml

implicitly uses GITHUB_TOKEN.

The current setup means that most of the pipeline runs redundantly (e.g.
we will generate code samples and check them in even with no changes) up
until the glean developer site's trigger-redeploy.yml[^1] which exits
early if there are no changes.

Remove auto-trigger-code-samples and instead run generate-code-samples
every 4 hours.

The previous setup would trigger generate-code-samples, but none of the
downstream workflows (the next one being .github/workflows/deploy-pages.yml).

The rules for GitHub are as follows:

If workflow A triggers workflow B in a way that is "automated", then B
will run but its completion will not trigger downstream workflows C.

"automated" here is determined by the use of `GITHUB_TOKEN`

    gh workflow run generate-code-samples.yml

implicitly uses `GITHUB_TOKEN`.

The current setup means that most of the pipeline runs redundantly (e.g.
we will generate code samples and check them in even with no changes) up
until the glean developer site's trigger-redeploy.yml[^1] which exits
early if there are no changes.

[1]: https://github.com/gleanwork/glean-developer-site/blob/8fa1fb6cfb44c457ed135eca678d7a9da82af4f4/.github/workflows/trigger-redeploy.yml#L1-L115
@david-hamilton-glean david-hamilton-glean requested a review from a team as a code owner January 15, 2026 19:29
Copy link

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

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: a04ed88c64

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Fix steps.check.clients_ready -> steps.check.outputs.clients_ready
and fix prettier formatting.
Manual triggers should always run, regardless of client sync status.
The check only gates scheduled (cron) runs.
@david-hamilton-glean david-hamilton-glean merged commit 998c825 into main Jan 15, 2026
1 check passed
@david-hamilton-glean david-hamilton-glean deleted the hjdivad/deploy branch January 15, 2026 19:59
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.

4 participants