From 393f6d74c91452b531af73f6ebbc5434cde1c50c Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Thu, 16 Jan 2025 15:58:37 +0100 Subject: [PATCH] Update update_json_date.yml --- .github/workflows/update_json_date.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update_json_date.yml b/.github/workflows/update_json_date.yml index 4de24be9..e2e0b550 100644 --- a/.github/workflows/update_json_date.yml +++ b/.github/workflows/update_json_date.yml @@ -10,7 +10,13 @@ jobs: - name: Checkout PR Branch uses: actions/checkout@v4 with: - ref: ${{ github.head_ref }} + ref: ${{ github.event.pull_request.base.ref }} + + - name: Fetch PR changes + run: | + git remote add fork https://github.com/${{ github.event.pull_request.head.repo.full_name }}.git + git fetch fork ${{ github.event.pull_request.head.ref }}:pullreq + git checkout pullreq - name: Update JSON id: changed-files