Skip to content

Commit cc52d9d

Browse files
edenreichclaude
andcommitted
chore(ci): Update Claude Code workflow to use main action
- Upgrade actions/checkout from v4 to v6 - Switch claude-code-action from beta to main - Replace Flox with direct Go, golangci-lint, and task installation - Use claude_args and settings instead of separate config fields - Add enhanced system prompt guidelines Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 39e5b7c commit cc52d9d

1 file changed

Lines changed: 22 additions & 32 deletions

File tree

.github/workflows/claude.yml

Lines changed: 22 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -31,52 +31,42 @@ jobs:
3131
actions: read
3232
steps:
3333
- name: Checkout repository
34-
uses: actions/checkout@v4
34+
uses: actions/checkout@v6
3535
with:
3636
fetch-depth: 1
3737

38+
- name: Set up Go
39+
uses: actions/setup-go@v6.2.0
40+
with:
41+
go-version-file: go.mod
42+
cache: true
43+
44+
- name: Install golangci-lint
45+
run: |
46+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /usr/local/bin v2.8.0
47+
48+
- name: Install task
49+
run: |
50+
curl -s https://taskfile.dev/install.sh | sh -s -- -b /usr/local/bin v3.45.5
51+
3852
- name: Install Agent Definition Language (ADL) CLI
3953
run: |
4054
curl -fsSL https://raw.githubusercontent.com/inference-gateway/adl-cli/main/install.sh | bash
4155
42-
- name: Install Flox
43-
uses: flox/install-flox-action@main
44-
4556
- name: Run Claude Code
4657
id: claude
47-
uses: anthropics/claude-code-action@beta
58+
uses: anthropics/claude-code-action@main
4859
with:
4960
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
5061
additional_permissions: |
5162
actions: read
5263
use_commit_signing: true
5364
base_branch: main
54-
branch_prefix: 'claude/'
55-
custom_instructions: |
56-
IMPORTANT: You must NEVER push directly to the main branch. Always:
57-
1. Create a new feature branch (claude/feature-name)
58-
2. Make your changes on the feature branch
59-
3. Open a pull request to main
60-
4. Wait for review and approval before merging
61-
62-
COMMIT MESSAGE FORMAT: Always use conventional commits with capital letters.
63-
Follow the format: "type(scope): Description" where the description starts with a capital letter.
64-
Examples: "feat(a2a): Add retry mechanism for agent connections", "fix(auth): Resolve token validation issue"
65-
66-
Follow the development workflow specified in the coding instructions.
67-
mcp_config: |
65+
branch_prefix: "claude/"
66+
claude_args: |
67+
--allowedTools "Bash(task:*),Bash(go:*),Bash(gh:*),Bash(git:*),Bash(adl:*)"
68+
--mcp-config '{"mcpServers":{"context7":{"command":"npx","args":["-y","@upstash/context7-mcp@latest"],"env":{}}}}'
69+
settings: |
6870
{
69-
"mcpServers": {
70-
"context7": {
71-
"command": "npx",
72-
"args": ["-y", "@upstash/context7-mcp@latest"],
73-
"env": {}
74-
}
75-
}
71+
"systemPrompt": "IMPORTANT: You must NEVER push directly to the main branch. Always:\n1. Create a new feature branch (claude/feature-name)\n2. Make your changes on the feature branch\n3. Open a pull request to main\n4. Wait for review and approval before merging\n\nIMPORTANT: Always add a new line at the end of each file and follow the coding style guidelines.\n\nVERY IMPORTANT: You DO NOT care about backward compatibility - if you DO NOT need the code, simply delete it.\n\nVERY IMPORTANT: You DO NOT add inline comments above code inside of a function body - docblocks are ok for function and types signatures.\n\nCOMMIT MESSAGE FORMAT: Always use conventional commits with capital letters.\nFollow the format: \"type(scope): Description\" where the description starts with a capital letter.\nExamples: \"feat(a2a): Add retry mechanism for agent connections\", \"fix(auth): Resolve token validation issue\"\n\nFollow the development workflow specified in the coding instructions."
7672
}
77-
allowed_tools: |
78-
Bash(task:*)
79-
Bash(go:*)
80-
Bash(gh:*)
81-
Bash(git:*)
82-
Bash(adl:*)

0 commit comments

Comments
 (0)