diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f5106097..ca597aaf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 16.x + node-version: 20.x cache: npm - run: npm ci - run: npm run build diff --git a/.github/workflows/update-major-version.yml b/.github/workflows/update-major-version.yml index a43b3dae..38249871 100644 --- a/.github/workflows/update-major-version.yml +++ b/.github/workflows/update-major-version.yml @@ -11,8 +11,8 @@ on: type: choice description: The major version tag to update options: - - v2 - v3 + - v4 jobs: tag: diff --git a/README.md b/README.md index 43d006b8..84e59033 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ A GitHub action to create or update an issue or pull request comment. ```yml - name: Create comment - uses: peter-evans/create-or-update-comment@v3 + uses: peter-evans/create-or-update-comment@v4 with: issue-number: 1 body: | @@ -26,7 +26,7 @@ A GitHub action to create or update an issue or pull request comment. ```yml - name: Update comment - uses: peter-evans/create-or-update-comment@v3 + uses: peter-evans/create-or-update-comment@v4 with: comment-id: 557858210 body: | @@ -38,7 +38,7 @@ A GitHub action to create or update an issue or pull request comment. ```yml - name: Add reactions - uses: peter-evans/create-or-update-comment@v3 + uses: peter-evans/create-or-update-comment@v4 with: comment-id: 557858210 reactions: | @@ -73,7 +73,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@v3 + uses: peter-evans/create-or-update-comment@v4 id: couc with: issue-number: 1 @@ -98,7 +98,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Add reaction - uses: peter-evans/create-or-update-comment@v3 + uses: peter-evans/create-or-update-comment@v4 with: comment-id: ${{ github.event.comment.id }} reactions: eyes @@ -113,7 +113,7 @@ If the find-comment action output `comment-id` returns an empty string, a new co If it returns a value, the comment already exists and the content is replaced. ```yml - name: Find Comment - uses: peter-evans/find-comment@v2 + uses: peter-evans/find-comment@v3 id: fc with: issue-number: ${{ github.event.pull_request.number }} @@ -121,7 +121,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@v3 + uses: peter-evans/create-or-update-comment@v4 with: comment-id: ${{ steps.fc.outputs.comment-id }} issue-number: ${{ github.event.pull_request.number }} @@ -134,7 +134,7 @@ If it returns a value, the comment already exists and the content is replaced. If required, the create and update steps can be separated for greater control. ```yml - name: Find Comment - uses: peter-evans/find-comment@v2 + uses: peter-evans/find-comment@v3 id: fc with: issue-number: ${{ github.event.pull_request.number }} @@ -143,7 +143,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@v3 + uses: peter-evans/create-or-update-comment@v4 with: issue-number: ${{ github.event.pull_request.number }} body: | @@ -152,7 +152,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@v3 + uses: peter-evans/create-or-update-comment@v4 with: comment-id: ${{ steps.fc.outputs.comment-id }} body: | @@ -164,7 +164,7 @@ If required, the create and update steps can be separated for greater control. ```yml - name: Create comment - uses: peter-evans/create-or-update-comment@v3 + uses: peter-evans/create-or-update-comment@v4 with: issue-number: 1 body-path: 'comment-body.md' @@ -190,7 +190,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@v3 + uses: peter-evans/create-or-update-comment@v4 with: issue-number: 1 body: ${{ steps.template.outputs.result }} diff --git a/action.yml b/action.yml index 30effcde..29d32e1f 100644 --- a/action.yml +++ b/action.yml @@ -32,7 +32,7 @@ outputs: comment-id: description: 'The id of the created comment' runs: - using: 'node16' + using: 'node20' main: 'dist/index.js' branding: icon: 'message-square' diff --git a/package-lock.json b/package-lock.json index 706e63db..8d905dbf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "create-or-update-comment", - "version": "3.0.0", + "version": "4.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "create-or-update-comment", - "version": "3.0.0", + "version": "4.0.0", "license": "MIT", "dependencies": { "@actions/core": "^1.10.1", diff --git a/package.json b/package.json index 7c335af8..e2c60606 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "create-or-update-comment", - "version": "3.0.0", + "version": "4.0.0", "description": "Create or update an issue or pull request comment", "main": "lib/main.js", "scripts": {