From 19e7c1266a111ab230d12c5f34cf32a2cd0f1308 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Sat, 26 Mar 2022 19:05:40 +0200 Subject: [PATCH] Checkout head --- .github/workflows/pull_request_changelog.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pull_request_changelog.yml b/.github/workflows/pull_request_changelog.yml index 995f5d6c..49a15123 100644 --- a/.github/workflows/pull_request_changelog.yml +++ b/.github/workflows/pull_request_changelog.yml @@ -12,7 +12,11 @@ jobs: runs-on: ubuntu-latest name: "Check that changes is described" steps: - - uses: actions/checkout@master + - name: "Checkout code" + uses: actions/checkout@master + with: + ref: ${{ github.event.pull_request.head.sha }} + fetch-depth: '0' - name: Set up Python 3.10 uses: actions/setup-python@v2 with: