ci(whatsnew): let the Models step fail soft so the fallback runs without Models
If GitHub Models is disabled for the org the ai-inference step errors; without continue-on-error the job would go red and skip the inject+fallback. Mark it continue-on-error so an unavailable Models cleanly degrades to the deterministic bullets — the feature now works with Models off, not just on.
This commit is contained in:
@@ -15,8 +15,9 @@
|
|||||||
# never a hard dependency. Failure is isolated by `continue-on-error` + the
|
# never a hard dependency. Failure is isolated by `continue-on-error` + the
|
||||||
# deterministic fallback below, so it can never break a release.
|
# deterministic fallback below, so it can never break a release.
|
||||||
#
|
#
|
||||||
# Requires GitHub Models to be enabled for the PicPeak org (owner setting).
|
# GitHub Models is OPTIONAL. If it is disabled/unavailable for the org the AI
|
||||||
# Until then the AI step returns nothing and the deterministic fallback is used.
|
# step fails soft (continue-on-error) and the deterministic fallback produces
|
||||||
|
# the bullets instead — the feature works either way, Models just polishes them.
|
||||||
#
|
#
|
||||||
# Validated end-to-end on a fork (extract -> openai/gpt-4o-mini -> inject into
|
# Validated end-to-end on a fork (extract -> openai/gpt-4o-mini -> inject into
|
||||||
# real release notes; app parseWhatsNew() reads the block back).
|
# real release notes; app parseWhatsNew() reads the block back).
|
||||||
@@ -51,6 +52,7 @@ jobs:
|
|||||||
- name: Summarize with GitHub Models
|
- name: Summarize with GitHub Models
|
||||||
if: ${{ steps.feat.outputs.features != '' }}
|
if: ${{ steps.feat.outputs.features != '' }}
|
||||||
id: ai
|
id: ai
|
||||||
|
continue-on-error: true # Models may be disabled/unavailable for the org; fall back deterministically below
|
||||||
uses: actions/ai-inference@v1
|
uses: actions/ai-inference@v1
|
||||||
with:
|
with:
|
||||||
model: openai/gpt-4o-mini # catalog id (verified present); openai/gpt-4.1-mini or openai/gpt-5-nano also work
|
model: openai/gpt-4o-mini # catalog id (verified present); openai/gpt-4.1-mini or openai/gpt-5-nano also work
|
||||||
|
|||||||
Reference in New Issue
Block a user