From b866378a47535ab127f6d66215970de7580c988c Mon Sep 17 00:00:00 2001 From: Michael Vorburger Date: Thu, 2 Nov 2023 05:35:19 +0100 Subject: [PATCH] build: Fix Preview GitHub Action Hopefully this will fix https://github.com/www-learn-study/saraswati.learn.study/pull/42#issuecomment-1790047185 Signed-off-by: Michael Vorburger --- .github/workflows/preview.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index e249308..df8a4d5 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -22,13 +22,13 @@ jobs: runs-on: ubuntu-latest # Sets permissions of the GITHUB_TOKEN to allow post comment with Preview URL permissions: - issues: write pull-requests: write steps: - name: Checkout PR head - if: ${{ startsWith(github.event_name, 'pull_request') && github.event.action != 'closed' }} uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + with: + fetch-depth: 0 - name: Build if: ${{ github.event.action != 'closed' }} # Skipping these steps if the PR has been closed