Skip to content

Commit 9c35c38

Browse files
committed
Use action from aws-kotlin-repo-tools
1 parent fc57090 commit 9c35c38

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

.github/workflows/changelog-verification.yml

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,5 @@ jobs:
2020
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }}
2121
aws-region: us-west-2
2222

23-
- name: Setup kat
24-
uses: awslabs/aws-kotlin-repo-tools/.github/actions/setup-kat@main
25-
26-
- uses: actions/checkout@v2
27-
- name: Check for new changelog entry
28-
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-changelog') }}
29-
run: |
30-
git fetch origin ${{ github.base_ref }} --depth 1
31-
if ! git diff remotes/origin/${{ github.base_ref }} --name-only | grep -P "\.changes/[0-9a-f-]+\.json"; then
32-
echo "::error ::No new/updated changelog entry found in /.changes directory. Please either:"
33-
echo "::error ::* Add a changelog entry (see CONTRIBUTING.md for instructions) –or–"
34-
echo "::error ::* Add the 'no-changelog' label to this PR (in rare cases not warranting a changelog entry)"
35-
exit 1
36-
fi
37-
38-
- name: Verify all changelogs
39-
run: |
40-
if ! kat changelog ls; then
41-
echo "::error ::Changelog verification failed. Please check the format of your changelog entry."
42-
exit 1
43-
fi
23+
- name: Verify changelog
24+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/changelog-verification@misc-validate-changelogs

0 commit comments

Comments
 (0)