From 5c2b0693d08568ddb4d2cbb96265f79f874b51a0 Mon Sep 17 00:00:00 2001 From: Roy Hyunjin Han Date: Wed, 22 May 2024 12:07:03 -0400 Subject: [PATCH] Add fetch depth --- .github/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 73dfc3e..5eab05c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,9 +17,11 @@ jobs: if: github.event_name == 'pull_request' with: fetch-depth: 0 - ref: ${{ github.event.pull_request.head.ref }} + ref: ${{ github.event.pull_request.head.sha }} - uses: actions/checkout@v4 if: github.event_name == 'push' + with: + fetch-depth: 0 - uses: actions/setup-python@v5 with: python-version: "3.12"