From 02782580e549454adf8e23a8133edf5ae26eae10 Mon Sep 17 00:00:00 2001 From: Peter Evans <18365890+peter-evans@users.noreply.github.com> Date: Tue, 22 Mar 2022 15:51:14 +0900 Subject: [PATCH] Update runtime to node 16 --- .github/dependabot.yml | 8 ++++++++ .github/workflows/ci.yml | 12 ++++++------ .github/workflows/hello-world-command.yml | 4 ++-- .github/workflows/ping-command.yml | 2 +- .github/workflows/slash-command-dispatch.yml | 4 ++-- README.md | 10 +++++----- action.yml | 2 +- package.json | 2 +- 8 files changed, 26 insertions(+), 18 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..b85dc1893 --- /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 e594ec591..1da1025e1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,16 +14,16 @@ jobs: build: runs-on: ubuntu-latest 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 build - run: npm run format-check - run: npm run lint - run: npm run test - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: dist path: dist @@ -33,8 +33,8 @@ jobs: needs: [build] 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/.github/workflows/hello-world-command.yml b/.github/workflows/hello-world-command.yml index 0e47a5fd1..9066bffc7 100644 --- a/.github/workflows/hello-world-command.yml +++ b/.github/workflows/hello-world-command.yml @@ -7,7 +7,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.client_payload.github.payload.comment.id }} reaction-type: hooray @@ -17,7 +17,7 @@ jobs: run: echo ::set-output name=run-url::https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID - name: Create comment - uses: peter-evans/create-or-update-comment@v1 + uses: peter-evans/create-or-update-comment@v2 with: issue-number: ${{ github.event.client_payload.github.payload.issue.number }} body: | diff --git a/.github/workflows/ping-command.yml b/.github/workflows/ping-command.yml index 671ef24d1..450bdd11f 100644 --- a/.github/workflows/ping-command.yml +++ b/.github/workflows/ping-command.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Update comment - uses: peter-evans/create-or-update-comment@v1 + uses: peter-evans/create-or-update-comment@v2 with: comment-id: ${{ github.event.client_payload.github.payload.comment.id }} body: | diff --git a/.github/workflows/slash-command-dispatch.yml b/.github/workflows/slash-command-dispatch.yml index cad93bcaa..d4d1c6fc8 100644 --- a/.github/workflows/slash-command-dispatch.yml +++ b/.github/workflows/slash-command-dispatch.yml @@ -11,7 +11,7 @@ jobs: # Checkout is necessary here due to referencing a local action. # It's also necessary when using the 'config-from-file' option. # Otherwise, avoid using checkout to keep this workflow fast. - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 # Basic configuration - name: Slash Command Dispatch @@ -105,7 +105,7 @@ jobs: - name: Edit comment with error message if: steps.scd.outputs.error-message - uses: peter-evans/create-or-update-comment@v1 + uses: peter-evans/create-or-update-comment@v2 with: comment-id: ${{ github.event.comment.id }} body: | diff --git a/README.md b/README.md index 20c845ec7..ddcb7b912 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Slash Command Dispatch - uses: peter-evans/slash-command-dispatch@v2 + uses: peter-evans/slash-command-dispatch@v3 with: token: ${{ secrets.PAT }} commands: | @@ -99,7 +99,7 @@ You can use a [PAT](https://docs.github.com/en/github/authenticating-to-github/c ```yml - name: Slash Command Dispatch - uses: peter-evans/slash-command-dispatch@v2 + uses: peter-evans/slash-command-dispatch@v3 with: token: ${{ secrets.PAT }} reaction-token: ${{ secrets.PAT }} @@ -175,7 +175,7 @@ It will also contain any static arguments if configured. To demonstrate, take the following configuration as an example. ```yml - - uses: peter-evans/slash-command-dispatch@v2 + - uses: peter-evans/slash-command-dispatch@v3 with: token: ${{ secrets.PAT }} commands: | @@ -245,7 +245,7 @@ The simplest response is to add a :tada: reaction to the comment. ```yml - name: Add reaction - uses: peter-evans/create-or-update-comment@v1 + uses: peter-evans/create-or-update-comment@v2 with: token: ${{ secrets.PAT }} repository: ${{ github.event.client_payload.github.payload.repository.full_name }} @@ -261,7 +261,7 @@ Another option is to reply with a new comment containing a link to the run outpu run: echo ::set-output name=run-url::https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID - name: Create comment - uses: peter-evans/create-or-update-comment@v1 + uses: peter-evans/create-or-update-comment@v2 with: token: ${{ secrets.PAT }} repository: ${{ github.event.client_payload.github.payload.repository.full_name }} diff --git a/action.yml b/action.yml index 62a96e9b5..7c4ced52d 100644 --- a/action.yml +++ b/action.yml @@ -41,7 +41,7 @@ outputs: error-message: description: 'Validation errors when using `workflow` dispatch.' runs: - using: 'node12' + using: 'node16' main: 'dist/index.js' branding: icon: 'target' diff --git a/package.json b/package.json index dc49eabfe..85974cb47 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "slash-command-dispatch", - "version": "2.0.0", + "version": "3.0.0", "private": true, "description": "Facilitates 'ChatOps' by creating dispatch events for slash commands", "main": "lib/main.js",