Comment on PR #15567
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: 'Comment on PR' | |
on: | |
workflow_run: | |
workflows: ["Pull Request Update"] | |
types: [ completed ] | |
jobs: | |
comment: | |
name: 'Post Comment on PR' | |
runs-on: ubuntu-latest | |
if: ${{ github.event.workflow_run.event == 'pull_request_target' && github.event.workflow_run.conclusion == 'success' }} | |
steps: | |
- name: Download Code Coverage | |
uses: dawidd6/action-download-artifact@v2 | |
with: | |
run_id: ${{ github.event.workflow_run.id }} | |
name: pr-code-coverage | |
- name: Restore Environment | |
run: cat pr.env >> "${GITHUB_ENV}" | |
- name: Add Coverage PR Comment | |
uses: marocchino/sticky-pull-request-comment@v2 | |
with: | |
header: code-coverage | |
number: ${{ env.PR_NUMBER }} | |
recreate: true | |
path: code-coverage-results.md | |
- name: Add AppImage Links | |
if: ${{ env.APPIMAGE }} | |
uses: marocchino/sticky-pull-request-comment@v2 | |
with: | |
header: AppImage | |
number: ${{ env.PR_NUMBER }} | |
recreate: true | |
message: | | |
AppImages ready! | |
<https://storage.googleapis.com/packages.viam.com/apps/viam-server/viam-server-pr-${{ env.PR_NUMBER }}-x86_64.AppImage> | |
<https://storage.googleapis.com/packages.viam.com/apps/viam-server/viam-server-pr-${{ env.PR_NUMBER }}-aarch64.AppImage> | |
- name: Add Static Build Links | |
if: ${{ env.STATIC }} | |
uses: marocchino/sticky-pull-request-comment@v2 | |
with: | |
header: Static Binaries | |
number: ${{ env.PR_NUMBER }} | |
recreate: true | |
message: | | |
Static binaries ready! | |
<https://storage.googleapis.com/packages.viam.com/apps/viam-server/viam-server-pr-${{ env.PR_NUMBER }}-x86_64> | |
<https://storage.googleapis.com/packages.viam.com/apps/viam-server/viam-server-pr-${{ env.PR_NUMBER }}-aarch64> |