Skip to content

Commit 3f3629d

Browse files
authored
Merge pull request #62 from peter-evans/v2
Update runtime to node 16
2 parents b4713b2 + 02041d2 commit 3f3629d

File tree

6 files changed

+31
-23
lines changed

6 files changed

+31
-23
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
sha: ${{ steps.vars.outputs.sha }}
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
@@ -40,14 +40,14 @@ jobs:
4040
matrix:
4141
target: [built, committed]
4242
steps:
43-
- uses: actions/checkout@v2
43+
- uses: actions/checkout@v3
4444
- if: matrix.target == 'built' || github.event_name == 'pull_request'
45-
uses: actions/download-artifact@v2
45+
uses: actions/download-artifact@v3
4646
with:
4747
name: dist
4848
path: dist
4949
- if: matrix.target == 'built' || github.event_name == 'pull_request'
50-
uses: actions/download-artifact@v2
50+
uses: actions/download-artifact@v3
5151
with:
5252
name: action.yml
5353
path: .
@@ -67,8 +67,8 @@ jobs:
6767
needs: [test]
6868
runs-on: ubuntu-latest
6969
steps:
70-
- uses: actions/checkout@v2
71-
- uses: actions/download-artifact@v2
70+
- uses: actions/checkout@v3
71+
- uses: actions/download-artifact@v3
7272
with:
7373
name: dist
7474
path: dist

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ A GitHub action to create a comment for a commit on GitHub.
1010

1111
```yml
1212
- name: Create commit comment
13-
uses: peter-evans/commit-comment@v1
13+
uses: peter-evans/commit-comment@v2
1414
with:
1515
body: |
1616
This is a multi-line test comment
@@ -37,7 +37,7 @@ Here is an example setting optional input parameters.
3737

3838
```yml
3939
- name: Create commit comment
40-
uses: peter-evans/commit-comment@v1
40+
uses: peter-evans/commit-comment@v2
4141
with:
4242
sha: 843dea1cc2e721163c20a5c876b5b155f7f3aa75
4343
body: |
@@ -65,7 +65,7 @@ The content must be [escaped to preserve newlines](https://github.community/t/se
6565
echo ::set-output name=body::$body
6666
6767
- name: Create commit comment
68-
uses: peter-evans/commit-comment@v1
68+
uses: peter-evans/commit-comment@v2
6969
with:
7070
body: ${{ steps.get-comment-body.outputs.body }}
7171
```

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ inputs:
1717
position:
1818
description: 'Line index in the diff to comment on.'
1919
runs:
20-
using: 'node12'
20+
using: 'node16'
2121
main: 'dist/index.js'
2222
branding:
2323
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": "commit-comment",
3-
"version": "1.0.0",
3+
"version": "2.0.0",
44
"description": "Create a comment for a commit on GitHub",
55
"main": "src/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)