diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/context7-refresh.yml | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/.github/workflows/context7-refresh.yml b/.github/workflows/context7-refresh.yml index c4c33635..2999865f 100644 --- a/.github/workflows/context7-refresh.yml +++ b/.github/workflows/context7-refresh.yml @@ -1,12 +1,13 @@ name: Context7 refresh # Refreshes the Context7 variant for the pushed branch. Context7 indexes -# three variants of this library, all tracking a branch HEAD directly: +# four variants of this library, all tracking a branch HEAD directly: # - rolling → default variant (omit both `branch` and `tag`) +# - scutum → branch variant `branch: "scutum"` (VyOS 1.6) # - circinus → branch variant `branch: "circinus"` (VyOS 1.5) # - sagitta → branch variant `branch: "sagitta"` (VyOS 1.4) # -# The circinus/sagitta variants are declared as branch entries in +# The scutum/circinus/sagitta variants are declared as branch entries in # context7.json `previousVersions`. There is no longer any git-tag # indirection — Context7 re-crawls the branch HEAD on refresh, so the # variant always reflects current branch content. @@ -16,7 +17,7 @@ name: Context7 refresh # README, etc.) never trigger a refresh — Context7 only ingests `docs/**` # (per context7.json `folders`) plus the config file itself. # -# NOTE: circinus/sagitta must be registered as BRANCH variants in the +# NOTE: scutum/circinus/sagitta must be registered as BRANCH variants in the # Context7 dashboard (driven by the context7.json `previousVersions` # branch entries on the default branch). A refresh with `branch: "<name>"` # returns 404 until Context7 has crawled the config and registered the @@ -26,6 +27,7 @@ on: push: branches: - rolling + - scutum - circinus - sagitta paths: @@ -34,9 +36,9 @@ on: workflow_dispatch: inputs: variant: - description: "Context7 variant to refresh (rolling = default; circinus = 1.5; sagitta = 1.4)" + description: "Context7 variant to refresh (rolling = default; scutum = 1.6; circinus = 1.5; sagitta = 1.4)" type: choice - options: [rolling, circinus, sagitta] + options: [rolling, scutum, circinus, sagitta] default: rolling permissions: {} @@ -75,11 +77,11 @@ jobs: # Defense-in-depth: the type:choice UI constraint is bypassable when # workflow_dispatch is invoked via API (`gh workflow run -f variant=…`). case "$VARIANT" in - rolling|circinus|sagitta) ;; - *) echo "Invalid variant: '${VARIANT}'. Expected one of: rolling, circinus, sagitta." >&2; exit 1 ;; + rolling|scutum|circinus|sagitta) ;; + *) echo "Invalid variant: '${VARIANT}'. Expected one of: rolling, scutum, circinus, sagitta." >&2; exit 1 ;; esac echo "Refreshing Context7 variant: $VARIANT" - # rolling = default variant (no field). circinus/sagitta = branch-backed. + # rolling = default variant (no field). scutum/circinus/sagitta = branch-backed. if [[ "$VARIANT" == "rolling" ]]; then PAYLOAD="$(jq -nc --arg lib "/$REPO" \ '{libraryName: $lib}')" |
