From 02041d2819e3594ad1b61370ef66fdfe75e2a020 Mon Sep 17 00:00:00 2001 From: Peter Evans <18365890+peter-evans@users.noreply.github.com> Date: Tue, 22 Mar 2022 14:42:30 +0900 Subject: [PATCH] Update runtime to node 16 --- .github/dependabot.yml | 8 ++++++++ .github/workflows/ci.yml | 20 ++++++++++---------- README.md | 6 +++--- action.yml | 2 +- package-lock.json | 16 ++++++++-------- package.json | 2 +- 6 files changed, 31 insertions(+), 23 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..b85dc18 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,8 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + labels: + - "dependencies" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1fe36b4..3315724 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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: . @@ -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 diff --git a/README.md b/README.md index a154bb9..0bdb372 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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: | @@ -65,7 +65,7 @@ The content must be [escaped to preserve newlines](https://github.community/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 }} ``` diff --git a/action.yml b/action.yml index e15dd50..bc2d25c 100644 --- a/action.yml +++ b/action.yml @@ -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' diff --git a/package-lock.json b/package-lock.json index ca73842..044583c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "commit-comment", - "version": "1.0.0", + "version": "2.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "commit-comment", - "version": "1.0.0", + "version": "2.0.0", "license": "MIT", "dependencies": { "@actions/core": "^1.6.0", @@ -3695,9 +3695,9 @@ } }, "node_modules/minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", + "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", "dev": true }, "node_modules/ms": { @@ -7637,9 +7637,9 @@ } }, "minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", + "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", "dev": true }, "ms": { diff --git a/package.json b/package.json index de1a2cc..b85b94a 100644 --- a/package.json +++ b/package.json @@ -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": {