Skip to content

workflow

workflow #19

Workflow file for this run

---
name: comment
permissions: read-all
on: [ workflow_dispatch, pull_request ]
env:
CSV_FILE_PREFIX: https://pub-95669c22c66d453c92c62f20aa0c5b57.r2.dev
BUCKET: github-action
BASE: main
JOBS: "main_again pr"
jobs:
comment:
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: print md
id: set_content
run: |
CONTENT=$(cat ./scripts/benchmark-pr-template.txt)
CONTENT=$(echo "$CONTENT" | envsubst)
echo $CONTENT >> "$GITHUB_STEP_SUMMARY"
echo "content<<EOF" >> $GITHUB_ENV
echo "$CONTENT" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: 'comment PR'
uses: actions/github-script@v7
with:
script: |
const content = process.env.content;
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: content
})