Skip to content

Commit e8674b0

Browse files
authored
feat: v5 (#439)
1 parent fffe59e commit e8674b0

File tree

6 files changed

+114
-261
lines changed

6 files changed

+114
-261
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- uses: actions/checkout@v5
2626
- uses: actions/setup-node@v5
2727
with:
28-
node-version: 20.x
28+
node-version-file: package.json
2929
cache: npm
3030
- run: npm ci
3131
- run: npm run build

.github/workflows/update-major-version.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ on:
1111
type: choice
1212
description: The major version tag to update
1313
options:
14-
- v3
15-
- v4
14+
- v5
1615

1716
jobs:
1817
tag:

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ A GitHub action to create or update an issue or pull request comment.
1010

1111
```yml
1212
- name: Create comment
13-
uses: peter-evans/create-or-update-comment@v4
13+
uses: peter-evans/create-or-update-comment@v5
1414
with:
1515
issue-number: 1
1616
body: |
@@ -26,7 +26,7 @@ A GitHub action to create or update an issue or pull request comment.
2626
2727
```yml
2828
- name: Update comment
29-
uses: peter-evans/create-or-update-comment@v4
29+
uses: peter-evans/create-or-update-comment@v5
3030
with:
3131
comment-id: 557858210
3232
body: |
@@ -38,7 +38,7 @@ A GitHub action to create or update an issue or pull request comment.
3838
3939
```yml
4040
- name: Add reactions
41-
uses: peter-evans/create-or-update-comment@v4
41+
uses: peter-evans/create-or-update-comment@v5
4242
with:
4343
comment-id: 557858210
4444
reactions: |
@@ -73,7 +73,7 @@ Note that in order to read the step output the action step must have an id.
7373

7474
```yml
7575
- name: Create comment
76-
uses: peter-evans/create-or-update-comment@v4
76+
uses: peter-evans/create-or-update-comment@v5
7777
id: couc
7878
with:
7979
issue-number: 1
@@ -98,7 +98,7 @@ jobs:
9898
runs-on: ubuntu-latest
9999
steps:
100100
- name: Add reaction
101-
uses: peter-evans/create-or-update-comment@v4
101+
uses: peter-evans/create-or-update-comment@v5
102102
with:
103103
comment-id: ${{ github.event.comment.id }}
104104
reactions: eyes
@@ -121,7 +121,7 @@ If it returns a value, the comment already exists and the content is replaced.
121121
body-includes: Build output
122122
123123
- name: Create or update comment
124-
uses: peter-evans/create-or-update-comment@v4
124+
uses: peter-evans/create-or-update-comment@v5
125125
with:
126126
comment-id: ${{ steps.fc.outputs.comment-id }}
127127
issue-number: ${{ github.event.pull_request.number }}
@@ -143,7 +143,7 @@ If required, the create and update steps can be separated for greater control.
143143
144144
- name: Create comment
145145
if: steps.fc.outputs.comment-id == ''
146-
uses: peter-evans/create-or-update-comment@v4
146+
uses: peter-evans/create-or-update-comment@v5
147147
with:
148148
issue-number: ${{ github.event.pull_request.number }}
149149
body: |
@@ -152,7 +152,7 @@ If required, the create and update steps can be separated for greater control.
152152
153153
- name: Update comment
154154
if: steps.fc.outputs.comment-id != ''
155-
uses: peter-evans/create-or-update-comment@v4
155+
uses: peter-evans/create-or-update-comment@v5
156156
with:
157157
comment-id: ${{ steps.fc.outputs.comment-id }}
158158
body: |
@@ -164,7 +164,7 @@ If required, the create and update steps can be separated for greater control.
164164

165165
```yml
166166
- name: Create comment
167-
uses: peter-evans/create-or-update-comment@v4
167+
uses: peter-evans/create-or-update-comment@v5
168168
with:
169169
issue-number: 1
170170
body-path: 'comment-body.md'
@@ -190,7 +190,7 @@ The template is rendered using the [render-template](https://github.com/chuhlomi
190190
bar: that
191191
192192
- name: Create comment
193-
uses: peter-evans/create-or-update-comment@v4
193+
uses: peter-evans/create-or-update-comment@v5
194194
with:
195195
issue-number: 1
196196
body: ${{ steps.template.outputs.result }}

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ outputs:
3232
comment-id:
3333
description: 'The id of the created comment'
3434
runs:
35-
using: 'node20'
35+
using: 'node24'
3636
main: 'dist/index.js'
3737
branding:
3838
icon: 'message-square'

0 commit comments

Comments
 (0)