From 862a968b6893951e455b61df4607c63be927e5c1 Mon Sep 17 00:00:00 2001 From: Peter Evans <18365890+peter-evans@users.noreply.github.com> Date: Tue, 22 Mar 2022 14:58:13 +0900 Subject: [PATCH] Update runtime to node 16 --- .github/dependabot.yml | 8 ++++++++ .github/workflows/ci.yml | 20 ++++++++++---------- README.md | 20 ++++++++++---------- action.yml | 2 +- package-lock.json | 16 ++++++++-------- package.json | 2 +- 6 files changed, 38 insertions(+), 30 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..b85dc189 --- /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 decb2937..ae6c2fe1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,18 +16,18 @@ jobs: outputs: issue-number: ${{ steps.vars.outputs.issue-number }} 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 @@ -47,14 +47,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: . @@ -91,8 +91,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 cd8a01a8..cb3c67d1 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ This action was created to help facilitate a GitHub Actions "ChatOps" solution i ```yml - name: Create comment - uses: peter-evans/create-or-update-comment@v1 + uses: peter-evans/create-or-update-comment@v2 with: issue-number: 1 body: | @@ -28,7 +28,7 @@ This action was created to help facilitate a GitHub Actions "ChatOps" solution i ```yml - name: Update comment - uses: peter-evans/create-or-update-comment@v1 + uses: peter-evans/create-or-update-comment@v2 with: comment-id: 557858210 body: | @@ -40,7 +40,7 @@ This action was created to help facilitate a GitHub Actions "ChatOps" solution i ```yml - name: Add reactions - uses: peter-evans/create-or-update-comment@v1 + uses: peter-evans/create-or-update-comment@v2 with: comment-id: 557858210 reactions: heart, hooray, laugh @@ -69,7 +69,7 @@ Note that in order to read the step output the action step must have an id. ```yml - name: Create comment - uses: peter-evans/create-or-update-comment@v1 + uses: peter-evans/create-or-update-comment@v2 id: couc with: issue-number: 1 @@ -94,7 +94,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Add reaction - uses: peter-evans/create-or-update-comment@v1 + uses: peter-evans/create-or-update-comment@v2 with: comment-id: ${{ github.event.comment.id }} reactions: eyes @@ -117,7 +117,7 @@ If it returns a value, the comment already exists and the content is replaced. body-includes: Build output - name: Create or update comment - uses: peter-evans/create-or-update-comment@v1 + uses: peter-evans/create-or-update-comment@v2 with: comment-id: ${{ steps.fc.outputs.comment-id }} issue-number: ${{ github.event.pull_request.number }} @@ -139,7 +139,7 @@ If required, the create and update steps can be separated for greater control. - name: Create comment if: steps.fc.outputs.comment-id == '' - uses: peter-evans/create-or-update-comment@v1 + uses: peter-evans/create-or-update-comment@v2 with: issue-number: ${{ github.event.pull_request.number }} body: | @@ -148,7 +148,7 @@ If required, the create and update steps can be separated for greater control. - name: Update comment if: steps.fc.outputs.comment-id != '' - uses: peter-evans/create-or-update-comment@v1 + uses: peter-evans/create-or-update-comment@v2 with: comment-id: ${{ steps.fc.outputs.comment-id }} body: | @@ -171,7 +171,7 @@ The content must be [escaped to preserve newlines](https://github.community/t/se echo "::set-output name=body::$body" - name: Create comment - uses: peter-evans/create-or-update-comment@v1 + uses: peter-evans/create-or-update-comment@v2 with: issue-number: 1 body: ${{ steps.get-comment-body.outputs.body }} @@ -197,7 +197,7 @@ The template is rendered using the [render-template](https://github.com/chuhlomi bar: that - name: Create comment - uses: peter-evans/create-or-update-comment@v1 + uses: peter-evans/create-or-update-comment@v2 with: issue-number: 1 body: ${{ steps.template.outputs.result }} diff --git a/action.yml b/action.yml index d73960e6..a3b8799d 100644 --- a/action.yml +++ b/action.yml @@ -22,7 +22,7 @@ outputs: comment-id: description: 'The id of the created comment' runs: - using: 'node12' + using: 'node16' main: 'dist/index.js' branding: icon: 'message-square' diff --git a/package-lock.json b/package-lock.json index dd158db8..9322dbd2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "create-or-update-comment", - "version": "1.0.0", + "version": "2.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "create-or-update-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 236c6eeb..46c9a676 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "create-or-update-comment", - "version": "1.0.0", + "version": "2.0.0", "description": "Create or update an issue or pull request comment", "main": "index.js", "scripts": {