Skip to content

Commit

Permalink
Downloads full history in workflows/syncsubdeps.
Browse files Browse the repository at this point in the history
  • Loading branch information
tommie committed Dec 30, 2023
1 parent 69f2de2 commit acb51fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/syncsubdeps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Set Up Workspace
# Submodules shouldn't cause a download.
Expand All @@ -39,6 +37,9 @@ jobs:
# This is the latest commit affecting any file in the submodules.
# Thus, this workflow is idempotent.
#
# It requires the full commit history. If checkout uses fetch-depth=1,
# this always returns ${{ github.sha }}.
sha="$(git log -n 1 --pretty=format:%H -- "${submods[@]}")"
echo "submodules=${submods[*]}" >>"$GITHUB_OUTPUT"
Expand Down

0 comments on commit acb51fd

Please sign in to comment.