diff --git a/.github/workflows/sync-ai-config.yml b/.github/workflows/sync-ai-config.yml new file mode 100644 index 0000000..6b3771a --- /dev/null +++ b/.github/workflows/sync-ai-config.yml @@ -0,0 +1,42 @@ +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' + clear-ai-configs: + description: 'Clear existing AI configuration files before syncing' + required: false + type: boolean + default: false + 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 }} + clear-ai-configs: ${{ inputs.clear-ai-configs }} diff --git a/GitTools.sln b/GitTools.sln index 466eb8a..6b7c6f5 100644 --- a/GitTools.sln +++ b/GitTools.sln @@ -65,6 +65,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ci", "ci", "{E91F4387-0278- .github\workflows\main.yml = .github\workflows\main.yml .github\workflows\pull-request.yml = .github\workflows\pull-request.yml .github\workflows\release.yml = .github\workflows\release.yml + .github\workflows\sync-ai-config.yml = .github\workflows\sync-ai-config.yml EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{DE982092-6508-4062-99D5-6A6EE9ECB81F}"