diff --git a/.forgejo/workflows/check-changelog.yml b/.forgejo/workflows/check-changelog.yml index f4e0f8112..a6060a0f3 100644 --- a/.forgejo/workflows/check-changelog.yml +++ b/.forgejo/workflows/check-changelog.yml @@ -21,7 +21,7 @@ jobs: git config --global http.${{ github.server_url }}/.extraheader "Authorization: basic $AUTH" git clone "${{ github.event.repository.clone_url }}" repo.git --bare - git -C repo.git fetch origin ${{ github.event.pull_request.head.ref }} + git -C repo.git fetch origin refs/pull/${{ github.event.pull_request.number }}/merge # Check for Added (A) or Modified (M) files in changelog.d CHANGELOG_CHANGES=$(git -C repo.git diff --name-status ${{ github.event.pull_request.base.sha }}...${{ github.event.pull_request.head.sha }} -- changelog.d/)