PR Actions Detective #2683
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: 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 }} |