Skip to content

Commit 2fa5141

Browse files
authored
Merge pull request #140 from peter-evans/v3
Update runtime to node 16
2 parents d4409d5 + 0278258 commit 2fa5141

8 files changed

+26
-18
lines changed

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
labels:
8+
- "dependencies"

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ jobs:
1414
build:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v2
18-
- uses: actions/setup-node@v1
17+
- uses: actions/checkout@v3
18+
- uses: actions/setup-node@v3
1919
with:
20-
node-version: 12.x
20+
node-version: 16.x
2121
- run: npm ci
2222
- run: npm run build
2323
- run: npm run format-check
2424
- run: npm run lint
2525
- run: npm run test
26-
- uses: actions/upload-artifact@v2
26+
- uses: actions/upload-artifact@v3
2727
with:
2828
name: dist
2929
path: dist
@@ -33,8 +33,8 @@ jobs:
3333
needs: [build]
3434
runs-on: ubuntu-latest
3535
steps:
36-
- uses: actions/checkout@v2
37-
- uses: actions/download-artifact@v2
36+
- uses: actions/checkout@v3
37+
- uses: actions/download-artifact@v3
3838
with:
3939
name: dist
4040
path: dist

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Add reaction
10-
uses: peter-evans/create-or-update-comment@v1
10+
uses: peter-evans/create-or-update-comment@v2
1111
with:
1212
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
1313
reaction-type: hooray
@@ -17,7 +17,7 @@ jobs:
1717
run: echo ::set-output name=run-url::https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID
1818

1919
- name: Create comment
20-
uses: peter-evans/create-or-update-comment@v1
20+
uses: peter-evans/create-or-update-comment@v2
2121
with:
2222
issue-number: ${{ github.event.client_payload.github.payload.issue.number }}
2323
body: |

.github/workflows/ping-command.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Update comment
10-
uses: peter-evans/create-or-update-comment@v1
10+
uses: peter-evans/create-or-update-comment@v2
1111
with:
1212
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
1313
body: |

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
# Checkout is necessary here due to referencing a local action.
1212
# It's also necessary when using the 'config-from-file' option.
1313
# Otherwise, avoid using checkout to keep this workflow fast.
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1515

1616
# Basic configuration
1717
- name: Slash Command Dispatch
@@ -105,7 +105,7 @@ jobs:
105105
106106
- name: Edit comment with error message
107107
if: steps.scd.outputs.error-message
108-
uses: peter-evans/create-or-update-comment@v1
108+
uses: peter-evans/create-or-update-comment@v2
109109
with:
110110
comment-id: ${{ github.event.comment.id }}
111111
body: |

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
runs-on: ubuntu-latest
5555
steps:
5656
- name: Slash Command Dispatch
57-
uses: peter-evans/slash-command-dispatch@v2
57+
uses: peter-evans/slash-command-dispatch@v3
5858
with:
5959
token: ${{ secrets.PAT }}
6060
commands: |
@@ -99,7 +99,7 @@ You can use a [PAT](https://docs.github.com/en/github/authenticating-to-github/c
9999

100100
```yml
101101
- name: Slash Command Dispatch
102-
uses: peter-evans/slash-command-dispatch@v2
102+
uses: peter-evans/slash-command-dispatch@v3
103103
with:
104104
token: ${{ secrets.PAT }}
105105
reaction-token: ${{ secrets.PAT }}
@@ -175,7 +175,7 @@ It will also contain any static arguments if configured.
175175

176176
To demonstrate, take the following configuration as an example.
177177
```yml
178-
- uses: peter-evans/slash-command-dispatch@v2
178+
- uses: peter-evans/slash-command-dispatch@v3
179179
with:
180180
token: ${{ secrets.PAT }}
181181
commands: |
@@ -245,7 +245,7 @@ The simplest response is to add a :tada: reaction to the comment.
245245

246246
```yml
247247
- name: Add reaction
248-
uses: peter-evans/create-or-update-comment@v1
248+
uses: peter-evans/create-or-update-comment@v2
249249
with:
250250
token: ${{ secrets.PAT }}
251251
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
@@ -261,7 +261,7 @@ Another option is to reply with a new comment containing a link to the run outpu
261261
run: echo ::set-output name=run-url::https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID
262262
263263
- name: Create comment
264-
uses: peter-evans/create-or-update-comment@v1
264+
uses: peter-evans/create-or-update-comment@v2
265265
with:
266266
token: ${{ secrets.PAT }}
267267
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ outputs:
4141
error-message:
4242
description: 'Validation errors when using `workflow` dispatch.'
4343
runs:
44-
using: 'node12'
44+
using: 'node16'
4545
main: 'dist/index.js'
4646
branding:
4747
icon: 'target'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "slash-command-dispatch",
3-
"version": "2.0.0",
3+
"version": "3.0.0",
44
"private": true,
55
"description": "Facilitates 'ChatOps' by creating dispatch events for slash commands",
66
"main": "lib/main.js",

0 commit comments

Comments
 (0)