Skip to content

Commit

Permalink
Fix fetch depth and git history
Browse files Browse the repository at this point in the history
  • Loading branch information
shonfeder committed Jan 1, 2025
1 parent 3e2a1fe commit f39ea5a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit f39ea5a

Please sign in to comment.