The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
feat(infra): schedule daily model profile refresh with job summary (#35354)
Mason Daugherty0081deae96ae
diff --git a/.github/workflows/refresh_model_profiles.yml b/.github/workflows/refresh_model_profiles.ymlindex 5cfe866a55..5969da9d27 100644--- a/.github/workflows/refresh_model_profiles.yml+++ b/.github/workflows/refresh_model_profiles.yml@@ -1,11 +1,15 @@# Refreshes model profile data for all in-monorepo partner integrations by# pulling the latest metadata from models.dev via the `langchain-profiles` CLI.#-# Creates a pull request with any changes. Triggered manually from the Actions UI.+# Creates a pull request with any changes. Runs daily and can be triggered+# manually from the Actions UI. Uses a fixed branch so each run supersedes+# any stale PR from a previous run.name: "π Refresh Model Profiles"on:+ schedule:+ - cron: "0 8 * * *" # daily at 08:00 UTCworkflow_dispatch:permissions:@@ -63,7 +67,8 @@ jobs:private-key: ${{ secrets.MODEL_PROFILE_BOT_PRIVATE_KEY }}- name: "π Create pull request"- uses: peter-evans/create-pull-request@v7+ id: create-pr+ uses: peter-evans/create-pull-request@v8with:token: ${{ steps.app-token.outputs.token }}branch: bot/refresh-model-profiles@@ -74,4 +79,15 @@ jobs:integrations via `langchain-profiles refresh`.π€ Generated by the `refresh_model_profiles` workflow.+ labels: botadd-paths: libs/partners/**/data/_profiles.py++ - name: "π Summary"+ run: |+ op="${{ steps.create-pr.outputs.pull-request-operation }}"+ url="${{ steps.create-pr.outputs.pull-request-url }}"+ if [ "$op" = "created" ] || [ "$op" = "updated" ]; then+ echo "### β PR ${op}: ${url}" >> "$GITHUB_STEP_SUMMARY"+ else+ echo "### βοΈ Skipped: profiles already up to date" >> "$GITHUB_STEP_SUMMARY"+ fi