From fcf613aed83e361cfef1bcfdc20417829f06fb7f Mon Sep 17 00:00:00 2001 From: Matthew Andres Moreno Date: Fri, 8 Dec 2023 12:51:23 -0500 Subject: [PATCH] Fall back to default ref if not pull --- .github/workflows/CI.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 666267c9c0..67a01209d7 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -25,7 +25,7 @@ jobs: - uses: actions/checkout@v4 with: # sometimes checkout action doesn't result in clean directory? - ref: ${{ github.event.pull_request.head.sha }} + ref: ${{ github.event.pull_request.head.sha || github.ref }} submodules: 'recursive' - run: git status --ignored - run: brew install coreutils findutils gnu-sed gawk grep rename sphinx-doc