From 800acbfd4c7ddeb6e60be6ddf60d5d8ef433d735 Mon Sep 17 00:00:00 2001 From: Yuriy Andamasov Date: Mon, 11 May 2026 11:28:48 +0300 Subject: ci(context7): gate version-tag move + refresh on docs-only changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add `paths:` filter to `Update version tags` push trigger so infra-only pushes (workflows, scripts, Docker, README, etc.) skip the tag move and therefore skip the downstream Context7 refresh. Context7 only ingests `docs/**` (per context7.json `folders`), so refreshing on infra commits wasted API calls and gave no benefit. `context7.json` is also covered because changes to its `rules`/`folders`/`excludeFolders` affect what Context7 returns even when no .md files moved. The version tag's only consumer is Context7, so skipping the move on infra-only pushes is semantically correct — the tag still represents the latest docs state. `workflow_dispatch` on context7-refresh.yml remains available to force a refresh out of band. 🤖 Generated by [robots](https://vyos.io) --- .github/workflows/context7-refresh.yml | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.github/workflows/context7-refresh.yml') diff --git a/.github/workflows/context7-refresh.yml b/.github/workflows/context7-refresh.yml index b21124d8..8072c389 100644 --- a/.github/workflows/context7-refresh.yml +++ b/.github/workflows/context7-refresh.yml @@ -17,6 +17,11 @@ name: Context7 refresh # BACKWARD and trigger this workflow to refresh Context7 against stale # content. To force a Context7 refresh, use the workflow_dispatch input # below — it calls Context7 directly without touching any tag. +# +# Docs-only gating is enforced upstream: `Update version tags` has a +# `paths:` filter scoped to `docs/**` and `context7.json`, so infra-only +# pushes (workflows, scripts, README, etc.) never fire that workflow and +# this one never sees a workflow_run event for them. on: workflow_run: -- cgit v1.2.3