forked from viam-modules/viam-cartographer
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 1.12 KB
/
appimage-comment.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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 PR Variables
uses: dawidd6/action-download-artifact@v2
with:
run_id: ${{ github.event.workflow_run.id }}
name: pr-variables
- name: Restore Environment
run: cat pr.env >> "${GITHUB_ENV}"
- 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/slam-servers/cartographer-module-pr-${{ env.PR_NUMBER }}-aarch64.AppImage>
<https://storage.googleapis.com//packages.viam.com/apps/slam-servers/cartographer-module-pr-${{ env.PR_NUMBER }}-x86_64.AppImage>