Skip to content

Commit 5053f27

Browse files
committed
Update changelog action
1 parent dad67e9 commit 5053f27

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/changelog.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@ on:
66
jobs:
77
changelog_comment_pr:
88
runs-on: ubuntu-latest
9-
name: Comment when Changelog is missing
9+
name: Comment when CHANGELOG entry is missing
1010
steps:
11-
- id: file_changes
12-
uses: trilom/file-changes-action@v1
11+
- name: Get changed files
12+
id: changed-files
13+
uses: tj-actions/changed-files@v44
1314
with:
1415
githubToken: ${{ secrets.GITHUB_TOKEN }}
1516

16-
- name: Comment PR
17-
if: ${{!contains(steps.file_changes.outputs.files_modified, 'gems/aws-sdk-core/CHANGELOG.md')}}
17+
- name: Comment on PR
18+
if: ${{!contains(steps.changed-files.outputs.all_changed_files, 'gems/aws-sdk-core/CHANGELOG.md')}}
1819
uses: thollander/actions-comment-pull-request@main
1920
with:
20-
message: 'You have made a change to core without a corresponding change to the CHANGELOG.md. This change will not result in a new version and will not published unless an entry is added to CHANGELOG.md'
21-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
message: 'You have made a change to core without a corresponding change to the CHANGELOG.md. This change will not result in a new version and will not published unless an entry is added to CHANGELOG.md.'
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)