diff --git a/.github/workflows/sync-ai-config.yml b/.github/workflows/sync-ai-config.yml new file mode 100644 index 0000000..1b54a6b --- /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,superpowers' + 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,superpowers' + 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 }}