-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (41 loc) · 1.3 KB
/
reviewapp.yml
File metadata and controls
44 lines (41 loc) · 1.3 KB
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
35
36
37
38
39
40
41
42
43
44
name: deploy reviewapp
on:
push:
branches-ignore:
- main
pull_request:
types:
- labeled
jobs:
reviewapp:
if: ${{ ! startsWith(github.head_ref, 'renovate/') }}
uses: cloudnativedaysjp/reusable-workflows/.github/workflows/wc-update-ecs-reviewapp.yml@main
permissions:
contents: read
pull-requests: read
id-token: write
secrets:
APP_ID: ${{ secrets.APP_ID }}
APP_PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
update-comment:
needs: [reviewapp]
runs-on: ubuntu-latest
permissions:
pull-requests: write
timeout-minutes: 3
steps:
- uses: marocchino/sticky-pull-request-comment@d2ad0de260ae8b0235ce059e63f2949ba9e05943 # v2.9.3
if: needs.reviewapp.outputs.outcome == 'success'
with:
number: ${{ needs.reviewapp.outputs.pr_number }}
header: reviewapp
recreate: true
message: |
Review app
* https://dreamkast-dk-${{ needs.reviewapp.outputs.pr_number }}.dev.cloudnativedays.jp
- uses: marocchino/sticky-pull-request-comment@d2ad0de260ae8b0235ce059e63f2949ba9e05943 # v2.9.3
if: needs.reviewapp.outputs.outcome != 'success'
with:
number: ${{ needs.reviewapp.outputs.pr_number }}
header: reviewapp
delete: true