Files
claude-code-gitea-action/test-workflow-example.yml
2025-05-23 11:31:08 -07:00

38 lines
998 B
YAML

name: Test Claude Code Action
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
permissions:
contents: write
issues: write
pull-requests: write
jobs:
claude:
if: contains(github.event.comment.body, '@claude-test') # Using different trigger for testing
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Debug Environment
run: |
echo "GITHUB_WORKSPACE: $GITHUB_WORKSPACE"
echo "Current directory: $(pwd)"
echo "Repository structure:"
find . -type f -name "*.py" | head -10
- name: Run Claude Code Action
uses: YOUR_USERNAME/claude-code-action@fix-mcp-undefined-error
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
github_token: ${{ secrets.GITHUB_TOKEN }}
# Optional: add debug mode if your fork supports it
debug: true