Apache Lucene open-source search software
Fetch PR branch to fix changelog workflow (#14355)
Stefan Voditad3c4872d3844
diff --git a/.github/workflows/verify-changelog-and-set-milestone.yml b/.github/workflows/verify-changelog-and-set-milestone.ymlindex 0fed168e242..646ca294ad2 100644--- a/.github/workflows/verify-changelog-and-set-milestone.yml+++ b/.github/workflows/verify-changelog-and-set-milestone.yml@@ -18,7 +18,7 @@ jobs:- name: Checkout repositoryuses: actions/checkout@v4with:- fetch-depth: 2+ ref: ${{ github.event.pull_request.head.ref }}- name: ChangeLog Entry Verifier and Milestone Setterrun: |@@ -37,9 +37,9 @@ jobs:echo -e "\n"echo "################## STEP 2 ##################"echo "Checking for change log entry in ${{ env.CHANGE_LOG_FILE }}"+ git fetch origin ${{ github.event.pull_request.base.ref }}git log --pretty=oneline | tail -n 2 | catecho "merge base sha: ${{ github.event.pull_request.base.sha }}, merge head sha: ${{ github.event.pull_request.head.sha }}"- git diff ${{ github.event.pull_request.base.sha }} --name-onlyif ! git diff ${{ github.event.pull_request.base.sha }} --name-only | grep -q "${{ env.CHANGE_LOG_FILE }}"; thenecho "Change log file:${{ env.CHANGE_LOG_FILE }} does not contains an entry corresponding to changes introduced in PR. Please add a changelog entry."exit 0