diff --git a/.github/workflows/sync-ai-config.yml b/.github/workflows/sync-ai-config.yml new file mode 100644 index 00000000..e9364a23 --- /dev/null +++ b/.github/workflows/sync-ai-config.yml @@ -0,0 +1,36 @@ +name: Sync AI Configuration + +on: + workflow_dispatch: + inputs: + create-pull-request: + description: 'Create a pull request instead of committing directly to the branch' + required: false + type: boolean + default: true + ai-base-version: + description: 'Version/branch of ai-base to use' + required: false + type: string + default: 'main' + schedule: + - cron: '0 0 * * *' # Every day at midnight + +jobs: + sync-scheduled: + if: github.event_name == 'schedule' + uses: CreativeCodersTeam/ai-base/.github/workflows/sync-ai-config.yml@main + with: + languages: 'csharp' + ai-systems: 'copilot,claude,junie' + ai-base-version: 'main' + create-pull-request: true + + sync-manual: + if: github.event_name == 'workflow_dispatch' + uses: CreativeCodersTeam/ai-base/.github/workflows/sync-ai-config.yml@main + with: + languages: 'csharp' + ai-systems: 'copilot,claude,junie' + ai-base-version: ${{ inputs.ai-base-version }} + create-pull-request: ${{ inputs.create-pull-request }} diff --git a/Core.sln b/Core.sln index ebd6e91a..18df48a4 100644 --- a/Core.sln +++ b/Core.sln @@ -252,6 +252,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ci", "ci", "{F3331DB3-C40A- .github\workflows\release.yml = .github\workflows\release.yml .github\workflows\main.yml = .github\workflows\main.yml .github\workflows\pull-request.yml = .github\workflows\pull-request.yml + .github\workflows\sync-ai-config.yml = .github\workflows\sync-ai-config.yml EndProjectSection EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Build", "build\Build.csproj", "{4A397E49-CB4F-4348-9798-A7F2B5F276DA}"