-
Notifications
You must be signed in to change notification settings - Fork 6
51 lines (49 loc) · 1.73 KB
/
Copy pathclaude-weekly.yaml
File metadata and controls
51 lines (49 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Weekly Claude Code Repo Analysis and Grooming
on:
schedule:
- cron: "0 6 * * 1" # 06:00 UTC every Monday
workflow_dispatch: # allow manual trigger for testing
jobs:
claude:
environment: claude
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@v3
with:
app-id: ${{ secrets.CORTEX_AI_AGENTS_APP_ID }}
private-key: ${{ secrets.CORTEX_AI_AGENTS_CLIENT_PKEY }}
- uses: ./.github/actions/setup-claude-code-action
- uses: ./.github/actions/start-litellm-proxy
env:
AICORE_RESOURCE_GROUP: ${{ secrets.AICORE_RESOURCE_GROUP }}
AICORE_BASE_URL: ${{ secrets.AICORE_BASE_URL }}
AICORE_AUTH_URL: ${{ secrets.AICORE_AUTH_URL }}
AICORE_CLIENT_ID: ${{ secrets.AICORE_CLIENT_ID }}
AICORE_CLIENT_SECRET: ${{ secrets.AICORE_CLIENT_SECRET }}
- uses: ./.claude-code-action
with:
prompt: "/weekly"
claude_args: |
--max-turns 1000
--permission-mode auto
--allowedTools "Read,Write,Edit,Bash(*),WebSearch,WebFetch"
use_litellm: "true"
litellm_model: "sap/anthropic--claude-4.6-opus"
github_token: ${{ steps.app-token.outputs.token }}
bot_id: "279748396"
bot_name: "cortex-ai-agents[bot]"
show_full_output: "true"
- uses: ./.github/actions/stop-litellm-proxy
if: always()