Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/ci-error-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Error Analysis

on:
workflow_run:
workflows: ["CI", "Release"]
types: [completed]

jobs:
analyze-error:
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
runs-on: ubuntu-latest

permissions:
contents: read
actions: read
pull-requests: write

steps:
- name: Debug Workflow Trigger
run: |
echo "Workflow run ID: ${{ github.event.workflow_run.id }}"
echo "Workflow name: ${{ github.event.workflow_run.name }}"
echo "Conclusion: ${{ github.event.workflow_run.conclusion }}"
echo "Event name: ${{ github.event_name }}"
echo "Repository: ${{ github.repository }}"
echo "Branch: ${{ github.event.workflow_run.head_branch }}"

- name: Run AI Error Analysis
uses: aswhitehouse/gh-pipeline-agents@main
with:
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
workflow_run_id: ${{ github.event.workflow_run.id }}
repository: ${{ github.repository }}
branch: ${{ github.event.workflow_run.head_branch }}
commit_sha: ${{ github.event.workflow_run.head_sha }}
pr_number: ${{ github.event.workflow_run.pull_requests[0].number || '' }}
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}