-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (52 loc) · 1.64 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Listens for specific comments in PRs and triggers a build
name: Build Trigger
on: issue_comment
jobs:
building_reaction:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v7
with:
script: |
github.rest.reactions.createForIssueComment({
comment_id: context.payload.comment.id,
content: 'ROCKET'
})
prerelease_deploy:
name: deploy to pre-release
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, 'deploy to pre-release') }}
uses: ./.github/workflows/build.yml@${{ github.event.pull_request.base.ref }}
secrets: inherit
with:
environment: pre-release
dev_deploy:
name: deploy to dev
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, 'deploy to dev') }}
uses: ./.github/workflows/build.yml@${{ github.event.pull_request.base.ref }}
secrets: inherit
with:
environment: dev
# Not doing prod-deploy - merge to main first
# respond with a thumbs up
done_prerelease:
runs-on: ubuntu-latest
needs: prerelease_deploy
steps:
- uses: actions/github-script@v7
with:
script: |
github.rest.reactions.createForIssueComment({
comment_id: context.payload.comment.id,
content: '+1'
})
done_dev:
runs-on: ubuntu-latest
needs: dev_deploy
steps:
- uses: actions/github-script@v7
with:
script: |
github.rest.reactions.createForIssueComment({
comment_id: context.payload.comment.id,
content: '+1'
})