pre-commit: PR125454 #5
This file contains 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: Summary | |
on: | |
issue_comment: | |
types: created | |
jobs: | |
summary: | |
if: github.event.issue.pull_request && github.event.sender.login == 'dtcxzyw' && contains(github.event.comment.body, 'runner:') | |
runs-on: [self-hosted, praction] | |
permissions: | |
pull-requests: write | |
steps: | |
- name: Get script | |
run: wget https://raw.githubusercontent.com/dtcxzyw/llvm-opt-benchmark/refs/heads/main/scripts/summary.py | |
- name: Run script | |
run: | | |
python3 summary.py > pr-comment.md | |
cat pr-comment.md | |
env: | |
API_TOKEN: ${{ secrets.LLM_API_TOKEN }} | |
GH_PR_NUMBER: ${{ github.event.issue.number }} | |
- name: Report | |
uses: thollander/actions-comment-pull-request@v3 | |
with: | |
file-path: pr-comment.md |