Skip to content

Commit c9fcb64

Browse files
authored
Merge pull request #105 from peter-evans/v2
Update runtime to node 16
2 parents 63e171a + 862a968 commit c9fcb64

File tree

6 files changed

+38
-30
lines changed

6 files changed

+38
-30
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: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ jobs:
1616
outputs:
1717
issue-number: ${{ steps.vars.outputs.issue-number }}
1818
steps:
19-
- uses: actions/checkout@v2
20-
- uses: actions/setup-node@v1
19+
- uses: actions/checkout@v3
20+
- uses: actions/setup-node@v3
2121
with:
22-
node-version: 12.x
22+
node-version: 16.x
2323
- run: npm ci
2424
- run: npm run test
2525
- run: npm run package
26-
- uses: actions/upload-artifact@v2
26+
- uses: actions/upload-artifact@v3
2727
with:
2828
name: dist
2929
path: dist
30-
- uses: actions/upload-artifact@v2
30+
- uses: actions/upload-artifact@v3
3131
with:
3232
name: action.yml
3333
path: action.yml
@@ -47,14 +47,14 @@ jobs:
4747
matrix:
4848
target: [built, committed]
4949
steps:
50-
- uses: actions/checkout@v2
50+
- uses: actions/checkout@v3
5151
- if: matrix.target == 'built' || github.event_name == 'pull_request'
52-
uses: actions/download-artifact@v2
52+
uses: actions/download-artifact@v3
5353
with:
5454
name: dist
5555
path: dist
5656
- if: matrix.target == 'built' || github.event_name == 'pull_request'
57-
uses: actions/download-artifact@v2
57+
uses: actions/download-artifact@v3
5858
with:
5959
name: action.yml
6060
path: .
@@ -91,8 +91,8 @@ jobs:
9191
needs: [test]
9292
runs-on: ubuntu-latest
9393
steps:
94-
- uses: actions/checkout@v2
95-
- uses: actions/download-artifact@v2
94+
- uses: actions/checkout@v3
95+
- uses: actions/download-artifact@v3
9696
with:
9797
name: dist
9898
path: dist

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This action was created to help facilitate a GitHub Actions "ChatOps" solution i
1212

1313
```yml
1414
- name: Create comment
15-
uses: peter-evans/create-or-update-comment@v1
15+
uses: peter-evans/create-or-update-comment@v2
1616
with:
1717
issue-number: 1
1818
body: |
@@ -28,7 +28,7 @@ This action was created to help facilitate a GitHub Actions "ChatOps" solution i
2828
2929
```yml
3030
- name: Update comment
31-
uses: peter-evans/create-or-update-comment@v1
31+
uses: peter-evans/create-or-update-comment@v2
3232
with:
3333
comment-id: 557858210
3434
body: |
@@ -40,7 +40,7 @@ This action was created to help facilitate a GitHub Actions "ChatOps" solution i
4040
4141
```yml
4242
- name: Add reactions
43-
uses: peter-evans/create-or-update-comment@v1
43+
uses: peter-evans/create-or-update-comment@v2
4444
with:
4545
comment-id: 557858210
4646
reactions: heart, hooray, laugh
@@ -69,7 +69,7 @@ Note that in order to read the step output the action step must have an id.
6969

7070
```yml
7171
- name: Create comment
72-
uses: peter-evans/create-or-update-comment@v1
72+
uses: peter-evans/create-or-update-comment@v2
7373
id: couc
7474
with:
7575
issue-number: 1
@@ -94,7 +94,7 @@ jobs:
9494
runs-on: ubuntu-latest
9595
steps:
9696
- name: Add reaction
97-
uses: peter-evans/create-or-update-comment@v1
97+
uses: peter-evans/create-or-update-comment@v2
9898
with:
9999
comment-id: ${{ github.event.comment.id }}
100100
reactions: eyes
@@ -117,7 +117,7 @@ If it returns a value, the comment already exists and the content is replaced.
117117
body-includes: Build output
118118
119119
- name: Create or update comment
120-
uses: peter-evans/create-or-update-comment@v1
120+
uses: peter-evans/create-or-update-comment@v2
121121
with:
122122
comment-id: ${{ steps.fc.outputs.comment-id }}
123123
issue-number: ${{ github.event.pull_request.number }}
@@ -139,7 +139,7 @@ If required, the create and update steps can be separated for greater control.
139139
140140
- name: Create comment
141141
if: steps.fc.outputs.comment-id == ''
142-
uses: peter-evans/create-or-update-comment@v1
142+
uses: peter-evans/create-or-update-comment@v2
143143
with:
144144
issue-number: ${{ github.event.pull_request.number }}
145145
body: |
@@ -148,7 +148,7 @@ If required, the create and update steps can be separated for greater control.
148148
149149
- name: Update comment
150150
if: steps.fc.outputs.comment-id != ''
151-
uses: peter-evans/create-or-update-comment@v1
151+
uses: peter-evans/create-or-update-comment@v2
152152
with:
153153
comment-id: ${{ steps.fc.outputs.comment-id }}
154154
body: |
@@ -171,7 +171,7 @@ The content must be [escaped to preserve newlines](https://github.community/t/se
171171
echo "::set-output name=body::$body"
172172
173173
- name: Create comment
174-
uses: peter-evans/create-or-update-comment@v1
174+
uses: peter-evans/create-or-update-comment@v2
175175
with:
176176
issue-number: 1
177177
body: ${{ steps.get-comment-body.outputs.body }}
@@ -197,7 +197,7 @@ The template is rendered using the [render-template](https://github.com/chuhlomi
197197
bar: that
198198
199199
- name: Create comment
200-
uses: peter-evans/create-or-update-comment@v1
200+
uses: peter-evans/create-or-update-comment@v2
201201
with:
202202
issue-number: 1
203203
body: ${{ steps.template.outputs.result }}

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ outputs:
2222
comment-id:
2323
description: 'The id of the created comment'
2424
runs:
25-
using: 'node12'
25+
using: 'node16'
2626
main: 'dist/index.js'
2727
branding:
2828
icon: 'message-square'

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-or-update-comment",
3-
"version": "1.0.0",
3+
"version": "2.0.0",
44
"description": "Create or update an issue or pull request comment",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)