Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

Commit 03f8464

Browse files
committed
ahem
1 parent afc2b06 commit 03f8464

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/changelog-check.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@ on:
44
pull_request:
55
types: [opened, synchronize, reopened]
66

7+
permissions:
8+
pull-requests: write
9+
issues: write
10+
711
jobs:
8-
changelog:
12+
check-changelog:
913
runs-on: ubuntu-latest
1014
steps:
1115
- uses: actions/checkout@v4
@@ -14,7 +18,8 @@ jobs:
1418

1519
- name: Check for changelog updates
1620
run: |
17-
if ! git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} | grep -q "docs/pages/resources/changelog.md"; then
21+
git fetch origin ${{ github.base_ref }}
22+
if ! git diff --name-only origin/${{ github.base_ref }}...HEAD | grep -q "docs/pages/resources/changelog.md"; then
1823
echo "no_changelog=true" >> $GITHUB_ENV
1924
fi
2025
@@ -23,7 +28,7 @@ jobs:
2328
uses: actions/github-script@v7
2429
with:
2530
script: |
26-
github.rest.issues.createComment({
31+
await github.rest.issues.createComment({
2732
owner: context.repo.owner,
2833
repo: context.repo.name,
2934
issue_number: context.issue.number,

0 commit comments

Comments
 (0)