Add artifact paths to UI display for crashed samples #1
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 Experiment Commenter | |
| on: | |
| issue_comment: | |
| types: [created] | |
| jobs: | |
| comment-experiment-links: | |
| if: github.event.issue.pull_request && startsWith(github.event.comment.body, '/gcbrun exp ') | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| steps: | |
| - name: Check out the repository to the runner | |
| uses: actions/checkout@v4 | |
| - name: Parse gcbrun command and post experiment links | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const scriptPath = path.join(process.cwd(), 'ci', 'pr_exp_comment.js'); | |
| const code = fs.readFileSync(scriptPath, 'utf8'); | |
| eval(code); | |
| await runPrExperimentCommenter({ github, context }); |