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