Skip to content

Update AI Foundry Models #50

Update AI Foundry Models

Update AI Foundry Models #50

name: Update AI Foundry Models
on:
workflow_dispatch:
schedule:
- cron: '0 5 * * *' # Daily at 05:00 UTC
permissions:
contents: write
pull-requests: write
jobs:
generate-and-pr:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'dotnet' }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Generate updated AIFoundry model descriptors
working-directory: src/Aspire.Hosting.Azure.AIFoundry/tools
run: |
set -e
"$GITHUB_WORKSPACE/dotnet.sh" run GenModel.cs
"$GITHUB_WORKSPACE/dotnet.sh" run GenModel.cs --local
- name: Create or update pull request
uses: dotnet/actions-create-pull-request@e8d799aa1f8b17f324f9513832811b0a62f1e0b1
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update-ai-foundry-models
base: main
commit-message: "[Automated] Update AI Foundry Models"
labels: |
area-integrations
area-engineering-systems
title: "[Automated] Update AI Foundry Models"
body: "Auto-generated update of Azure AI Foundry model descriptors (AIFoundryModel.Generated.cs)."