From d5b4de0aefe23db7680f9619cc5c1b3527193ddb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20Lo=CC=81pez=20Man=CC=83as?= Date: Thu, 29 Oct 2026 13:42:33 +0100 Subject: [PATCH] fix(ci): read the Update Skill Gemini model from GEMINI_MODEL update_skill.py hardcoded gemini-2.5-flash, which the API no longer serves, so the workflow has failed with a 404 on every release since September. It now reads the GEMINI_MODEL repository variable, as the issue triage workflow already does. --- .github/scripts/update_skill.py | 3 ++- .github/workflows/update-skill.yml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/scripts/update_skill.py b/.github/scripts/update_skill.py index 151ee914c..e5c722f42 100644 --- a/.github/scripts/update_skill.py +++ b/.github/scripts/update_skill.py @@ -18,7 +18,8 @@ import sys def get_gemini_response(api_key, prompt): - url = f"https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent?key={api_key}" + model = os.getenv("GEMINI_MODEL") or "gemini-3.8-flash" + url = f"https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={api_key}" headers = {'Content-Type': 'application/json'} data = { "contents": [{ diff --git a/.github/workflows/update-skill.yml b/.github/workflows/update-skill.yml index 0003d0cdd..d0a5f4bc6 100644 --- a/.github/workflows/update-skill.yml +++ b/.github/workflows/update-skill.yml @@ -54,6 +54,7 @@ jobs: - name: Update Skill via Gemini env: GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} + GEMINI_MODEL: ${{ vars.GEMINI_MODEL }} run: | python .github/scripts/update_skill.py rm release_diff.patch