From 33c8d85eb9d9d78fd805ee5913fcd3f5c2c8589c Mon Sep 17 00:00:00 2001 From: darthsharp <48331467+darthsharp@users.noreply.github.com> Date: Sun, 15 Mar 2026 19:31:25 +0100 Subject: [PATCH] feat: add daily and manual AI configuration sync GitHub workflow - Introduced `.github/workflows/sync-ai-config.yml` for automating AI configuration synchronization. - Added daily scheduled execution at midnight and manual `workflow_dispatch` trigger. - Included job variations for scheduled and manual sync with configurable inputs. - Updated `Core.sln` to reference the newly added workflow file. --- .github/workflows/sync-ai-config.yml | 36 ++++++++++++++++++++++++++++ Core.sln | 1 + 2 files changed, 37 insertions(+) create mode 100644 .github/workflows/sync-ai-config.yml 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}"