name: Comment e2e test screenshots on PRon:workflow_run:workflows: ['Node CI']types:- completedjobs:e2e_comment:runs-on: ubuntu-latestif: github.event.workflow_run.event == 'pull_request'steps:- name: Dump Workflow run info from GitHub contextenv:WORKFLOW_RUN_INFO: ${{ toJSON(github.event.workflow_run) }}run: echo "$WORKFLOW_RUN_INFO"- name: Download Artifactsuses: dawidd6/action-download-artifact@v21with:github_token: ${{ secrets.GITHUB_TOKEN }}workflow: nodejs.ymlrun_id: ${{ github.event.workflow_run.id }}name: e2e- name: Get PR numberuses: dawidd6/action-download-artifact@v21with:github_token: ${{ secrets.GITHUB_TOKEN }}workflow: nodejs.ymlrun_id: ${{ github.event.workflow_run.id }}name: pr_num- name: Read the pr_num fileid: pr_num_readeruses: juliangruber/read-file-action@v1.1.8with:path: ./pr_num.txt- name: List imagesrun: ls -al- name: Upload images to imgurid: upload_screenshotsuses: devicons/public-upload-to-imgur@v2.2.2with:path: ./*.pngclient_id: ${{ secrets.IMGUR_CLIENT_ID }}- name: Comment on the PRuses: jungwinter/comment@v1.1.0env:IMG_MARKDOWN: ${{ join(fromJSON(steps.upload_screenshots.outputs.markdown_urls), '') }}MESSAGE: |Hi there,Thank you for contributing to Hyper!You can get the build artifacts from [here](https://nightly.link/{1}/actions/runs/{2}).Here are screenshots of Hyper built from this pr.{0}with:type: createissue_number: ${{ steps.pr_num_reader.outputs.content }}token: ${{ secrets.GITHUB_TOKEN }}body: ${{ format(env.MESSAGE, env.IMG_MARKDOWN, github.repository, github.event.workflow_run.id) }}- name: Hide older commentsuses: kanga333/comment-hider@v0.4.0with:github_token: ${{ secrets.GITHUB_TOKEN }}leave_visible: 1issue_number: ${{ steps.pr_num_reader.outputs.content }}