Skip to content

Commit 29d08ac

Browse files
committed
Update workflows
1 parent 88cb5cc commit 29d08ac

File tree

3 files changed

+6
-44
lines changed

3 files changed

+6
-44
lines changed

.github/workflows/hello-world-command.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,15 @@ jobs:
66
helloWorld:
77
runs-on: ubuntu-latest
88
steps:
9-
# Checkout is necessary here due to referencing a local action.
10-
# It's also necessary when using the 'config-from-file' option.
11-
# Otherwise, avoid using checkout to keep this workflow fast.
12-
- uses: actions/checkout@v1
13-
14-
# For debugging purposes. Remove this in production.
15-
- name: Dump GitHub context
16-
env:
17-
GITHUB_CONTEXT: ${{ toJson(github) }}
18-
run: echo "$GITHUB_CONTEXT"
19-
209
- name: Add reaction
21-
#uses: peter-evans/create-or-update-comment@v1
22-
uses: ./.github/create-or-update-comment
10+
uses: peter-evans/create-or-update-comment@v1
2311
with:
2412
token: ${{ secrets.GITHUB_TOKEN }}
2513
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
2614
reaction-type: hooray
15+
2716
- name: Create comment
28-
#uses: peter-evans/create-or-update-comment@v1
29-
uses: ./.github/create-or-update-comment
17+
uses: peter-evans/create-or-update-comment@v1
3018
with:
3119
token: ${{ secrets.GITHUB_TOKEN }}
3220
issue-number: ${{ github.event.client_payload.github.payload.issue.number }}

.github/workflows/ping-command.yml

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,8 @@ jobs:
66
helloWorld:
77
runs-on: ubuntu-latest
88
steps:
9-
# Checkout is necessary here due to referencing a local action.
10-
# It's also necessary when using the 'config-from-file' option.
11-
# Otherwise, avoid using checkout to keep this workflow fast.
12-
- uses: actions/checkout@v1
13-
14-
# For debugging purposes. Remove this in production.
15-
- name: Dump GitHub context
16-
env:
17-
GITHUB_CONTEXT: ${{ toJson(github) }}
18-
run: echo "$GITHUB_CONTEXT"
19-
20-
# For debugging purposes. Remove this in production.
21-
- name: Output Command
22-
run: |
23-
echo ${{ github.event.client_payload.slash_command.command }}
24-
echo ${{ github.event.client_payload.slash_command.args }}
25-
echo ${{ github.event.client_payload.slash_command.arg1 }}
26-
echo ${{ github.event.client_payload.slash_command.arg2 }}
27-
echo ${{ github.event.client_payload.slash_command.arg3 }}
28-
# etc.
29-
309
- name: Update comment
31-
#uses: peter-evans/create-or-update-comment@v1
32-
uses: ./.github/create-or-update-comment
10+
uses: peter-evans/create-or-update-comment@v1
3311
with:
3412
token: ${{ secrets.GITHUB_TOKEN }}
3513
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}

.github/workflows/slash-command-dispatch.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Slash Command Dispatch
22
on:
33
issue_comment:
4+
# Type "edited" added here for test purposes. Where possible, avoid
5+
# using to prevent processing unnecessary events.
46
types: [created, edited]
57
jobs:
68
slashCommandDispatch:
@@ -11,12 +13,6 @@ jobs:
1113
# Otherwise, avoid using checkout to keep this workflow fast.
1214
- uses: actions/checkout@v1
1315

14-
# For debugging purposes. Remove this in production.
15-
- name: Dump GitHub context
16-
env:
17-
GITHUB_CONTEXT: ${{ toJson(github) }}
18-
run: echo "$GITHUB_CONTEXT"
19-
2016
# Basic configuration
2117
- name: Slash Command Dispatch
2218
uses: ./

0 commit comments

Comments
 (0)