Skip to content

Comment on the pull request #15

Comment on the pull request

Comment on the pull request #15

Workflow file for this run

name: Comment on the pull request
# read-write repo token
# access to secrets
on:
workflow_run:
workflows: ["quic-interop-runner"]
types:
- completed
jobs:
upload:
permissions:
pull-requests: write
runs-on: ubuntu-latest
if: >
github.event.workflow_run.event == 'pull_request'
steps:
- name: Download comment-data
uses: dawidd6/action-download-artifact@v2.11.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
workflow: main.yml
run_id: ${{ github.event.workflow_run.id }}
name: comment-data
- name: Format GitHub comment
run: |
pwd
ls -la
echo '[**QUIC Interop Runner**](https://github.com/quic-interop/quic-interop-runner)' >> comment
echo '' >> comment
echo '```' >> comment
cat output >> comment
echo '```' >> comment
echo '' >> comment
echo 'Download artifacts [here](' >> comment
cat logs-url >> comment
echo ').' >> comment
if: always()
shell: bash
- name: Read PR Number
id: pr-number
run: echo "::set-output name=number::$(cat pr-number)"
shell: bash
- name: Comment PR
uses: thollander/actions-comment-pull-request@v2
with:
filePath: comment
pr_number: ${{ steps.pr-number.outputs.number }}