Skip to content

Commit

Permalink
somebody save me
Browse files Browse the repository at this point in the history
  • Loading branch information
claviska committed Feb 3, 2025
1 parent 03f8464 commit 471e6cc
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/changelog-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,15 @@ jobs:

- name: Check for changelog updates
run: |
git fetch origin ${{ github.base_ref }}
if ! git diff --name-only origin/${{ github.base_ref }}...HEAD | grep -q "docs/pages/resources/changelog.md"; then
git fetch origin next
if ! git diff --name-only origin/next...HEAD | grep -q "docs/pages/resources/changelog.md"; then
echo "no_changelog=true" >> $GITHUB_ENV
fi
- name: Comment on PR
if: env.no_changelog == 'true'
uses: actions/github-script@v7
uses: peter-evans/create-or-update-comment@v3
with:
script: |
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.name,
issue_number: context.issue.number,
body: '❌ No changelog entry was found. Please add an entry to `docs/pages/resources/changelog.md`.'
})
issue-number: ${{ github.event.pull_request.number }}
body: |
❌ No changelog entry was found. Please add an entry to `docs/pages/resources/changelog.md`.

0 comments on commit 471e6cc

Please sign in to comment.