Skip to content

Commit

Permalink
ahem
Browse files Browse the repository at this point in the history
  • Loading branch information
claviska committed Feb 3, 2025
1 parent afc2b06 commit 03f8464
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/changelog-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ on:
pull_request:
types: [opened, synchronize, reopened]

permissions:
pull-requests: write
issues: write

jobs:
changelog:
check-changelog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -14,7 +18,8 @@ jobs:

- name: Check for changelog updates
run: |
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
git fetch origin ${{ github.base_ref }}
if ! git diff --name-only origin/${{ github.base_ref }}...HEAD | grep -q "docs/pages/resources/changelog.md"; then
echo "no_changelog=true" >> $GITHUB_ENV
fi
Expand All @@ -23,7 +28,7 @@ jobs:
uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.name,
issue_number: context.issue.number,
Expand Down

0 comments on commit 03f8464

Please sign in to comment.