Claude CI Fix #70
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Claude CI Fix | |
| on: | |
| workflow_run: | |
| workflows: ["Test"] | |
| types: [completed] | |
| workflow_dispatch: | |
| inputs: | |
| run_id: | |
| description: 'Failed workflow run ID (from gh run list)' | |
| required: true | |
| branch: | |
| description: 'PR branch name (e.g., claude/SDK-123)' | |
| required: true | |
| jobs: | |
| call-ci-fix: | |
| if: >- | |
| github.event_name == 'workflow_dispatch' || | |
| ( | |
| github.event.workflow_run.conclusion == 'failure' && | |
| startsWith(github.event.workflow_run.head_branch, 'claude/') | |
| ) | |
| # viamrobotics/claude-ci-workflows@v1.10.6 | |
| uses: viamrobotics/claude-ci-workflows/.github/workflows/claude-ci-fix.yml@918148a29da73235a7d751a93912aeaea0320b04 | |
| with: | |
| run_id: ${{ github.event.workflow_run.id || inputs.run_id }} | |
| branch: ${{ github.event.workflow_run.head_branch || inputs.branch }} | |
| install_command: 'pip install uv && make install' | |
| allowed_tools: 'Edit,Read,Write,Glob,Grep,Bash(uv run make format*),Bash(uv run make lint*),Bash(uv run make typecheck*),Bash(uv run make test*),Bash(uv run pytest*),Bash(uv run python -m pytest*),Bash(uv pip *),Bash(curl -s https://pypi.org/pypi/*),Bash(git config *),Bash(git add *),Bash(git commit *),Bash(git push *),Bash(git status*),Bash(git diff*),Bash(git -C * diff*),Bash(git log*),Bash(git checkout *),Bash(git branch *),Bash(git rev-parse *),Bash(git fetch *)' | |
| team_mention: '@viamrobotics/sdk' | |
| extra_prompt: | | |
| - Run `uv run make format` to format code before committing. | |
| - Run `uv run make lint` to check for lint issues. Fix any errors. | |
| extra_system_prompt: >- | |
| Only run make buf to regenerate src/viam/gen/. Do NOT run other make targets unless explicitly needed. | |
| secrets: | |
| ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | |
| GIT_ACCESS_TOKEN: ${{ secrets.GIT_ACCESS_TOKEN }} |