From f39ea5abca675a79d20c087d5e603b36cde67c69 Mon Sep 17 00:00:00 2001 From: Shon Feder Date: Wed, 1 Jan 2025 02:56:18 -0500 Subject: [PATCH] Fix fetch depth and git history --- .github/workflows/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a271d0de6..a851ea904 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,6 +21,9 @@ jobs: steps: - name: Checkout tree uses: actions/checkout@v4 + with: + # We need to fetch the history so we can compare against master + fetch-depth: 0 - name: Install GNU prallel run: sudo apt-get install -y parallel @@ -36,4 +39,4 @@ jobs: # Get the names of the packages being added to the archive, and feed these # to opam-ci-check - name: Lint newly archived packages - run: git diff --name-only main | sed 's:.*/\(.*\)/opam:\1:' | parallel opam exec -- opam-ci-check lint -r . --checks=archive-repo + run: git diff --name-only origin/main | sed 's:.*/\(.*\)/opam:\1:' | parallel opam exec -- opam-ci-check lint -r . --checks=archive-repo