This repository was archived by the owner on Apr 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 90
59 lines (55 loc) · 1.54 KB
/
example.yml
File metadata and controls
59 lines (55 loc) · 1.54 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Pull Request Comment Trigger Example
on:
pull_request:
types: [opened]
issue_comment:
types: [created]
jobs:
hello:
runs-on: ubuntu-latest
steps:
- uses: shanegenschaw/pull-request-comment-trigger@master
id: check
with:
trigger: "#hello"
- run: "echo Found it!"
if: steps.check.outputs.triggered == 'true'
eyes:
runs-on: ubuntu-latest
steps:
- uses: shanegenschaw/pull-request-comment-trigger@master
id: check
with:
trigger: "#look"
reaction: eyes
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- run: "echo Found it!"
if: steps.check.outputs.triggered == 'true'
rocket:
runs-on: ubuntu-latest
steps:
- uses: shanegenschaw/pull-request-comment-trigger@master
id: check
with:
trigger: "#deploy"
reaction: rocket
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- run: "echo Found it!"
if: steps.check.outputs.triggered == 'true'
arguments-rocket:
runs-on: ubuntu-latest
steps:
- uses: shanegenschaw/pull-request-comment-trigger@master
id: check
with:
trigger: "#deploy on ** environment"
reaction: rocket
allow_arguments: true
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- run: |
echo 'Found it!'
echo 'Deploy on ${{ fromJson(steps.check.outputs.arguments)[0] }}'
if: steps.check.outputs.triggered == 'true'