Skip to content

Commit

Permalink
Merge pull request #62 from peter-evans/v2
Browse files Browse the repository at this point in the history
Update runtime to node 16
  • Loading branch information
peter-evans authored Mar 22, 2022
2 parents b4713b2 + 02041d2 commit 3f3629d
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 23 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
labels:
- "dependencies"
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ jobs:
outputs:
sha: ${{ steps.vars.outputs.sha }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 12.x
node-version: 16.x
- run: npm ci
- run: npm run test
- run: npm run package
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: dist
path: dist
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: action.yml
path: action.yml
Expand All @@ -40,14 +40,14 @@ jobs:
matrix:
target: [built, committed]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- if: matrix.target == 'built' || github.event_name == 'pull_request'
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: dist
path: dist
- if: matrix.target == 'built' || github.event_name == 'pull_request'
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: action.yml
path: .
Expand All @@ -67,8 +67,8 @@ jobs:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: dist
path: dist
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A GitHub action to create a comment for a commit on GitHub.

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

```yml
- name: Create commit comment
uses: peter-evans/commit-comment@v1
uses: peter-evans/commit-comment@v2
with:
sha: 843dea1cc2e721163c20a5c876b5b155f7f3aa75
body: |
Expand Down Expand Up @@ -65,7 +65,7 @@ The content must be [escaped to preserve newlines](https://gh.neting.ccmunity/t/se
echo ::set-output name=body::$body
- name: Create commit comment
uses: peter-evans/commit-comment@v1
uses: peter-evans/commit-comment@v2
with:
body: ${{ steps.get-comment-body.outputs.body }}
```
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ inputs:
position:
description: 'Line index in the diff to comment on.'
runs:
using: 'node12'
using: 'node16'
main: 'dist/index.js'
branding:
icon: 'message-square'
Expand Down
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "commit-comment",
"version": "1.0.0",
"version": "2.0.0",
"description": "Create a comment for a commit on GitHub",
"main": "src/index.js",
"scripts": {
Expand Down

2 comments on commit 3f3629d

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a multi-line test comment

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a multi-line test comment

Please sign in to comment.