Skip to content

PR Actions Detective #2683

PR Actions Detective

PR Actions Detective #2683

name: PR Actions Detective
on:
workflow_run:
workflows: ["check-default", "pre-commit", "golangci-lint", "check-docs", "check-dev-tools"]
types: [completed]
permissions:
actions: read
contents: read
issues: write
pull-requests: write # required by gh-aw compiler for add-comment (github/gh-aw#16673)
jobs:
run:
if: >-
github.event.workflow_run.conclusion == 'failure' &&
toJSON(github.event.workflow_run.pull_requests) != '[]'
uses: elastic/ai-github-actions/.github/workflows/gh-aw-pr-actions-detective.lock.yml@v0
with:
setup-commands: |
sudo apt-get update && sudo apt-get install -y libpcap-dev librpm-dev python3-venv
export GOTOOLCHAIN=auto
make mage
secrets:
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}