From 52d993e87ba22aaa9ad8ad8d44fb9d2ad9a1249a Mon Sep 17 00:00:00 2001 From: Franciszek Walkowiak Date: Thu, 29 Feb 2024 15:17:43 +0100 Subject: [PATCH] Update --- .github/workflows/spelling.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/spelling.yaml b/.github/workflows/spelling.yaml index faac604d..96616ff7 100644 --- a/.github/workflows/spelling.yaml +++ b/.github/workflows/spelling.yaml @@ -87,6 +87,15 @@ jobs: - name: Checkout Code 🛎 uses: actions/checkout@v4 + if: github.event_name != 'push' + with: + token: ${{ steps.github-token.outputs.token }} + fetch-depth: 1 + ref: ${{ github.event.pull_request.head.sha }} + + - name: Checkout Code 🛎 + uses: actions/checkout@v4 + if: github.event_name == 'push' with: token: ${{ steps.github-token.outputs.token }}