Skip to content

Commit

Permalink
🩹 Fix git warnings in Github workflows
Browse files Browse the repository at this point in the history
The "Checkout" action is resulting in warnings that Git is returning
nonzero exit-codes, and this is due to the lack of the `.git/module`
registration for cached 3rd-party submodules. The easy fix here is for
the cache to also include the `.git/modules` path in addition to the
existing `3rd-party` directory -- since this will enable the remote
path to be discovered and hopefully not fail.
  • Loading branch information
bitwizeshift committed Dec 13, 2023
1 parent 254d6a9 commit d35bf34
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/actions/checkout/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ runs:
id: cache-submodule
uses: actions/cache@v3
with:
path: 3rd-party
key: submodules-${{ hashFiles('.gitmodules')}}
path: |
3rd-party
.git/modules
key: submodules-${{ hashFiles('.gitmodules')}}-v2
restore-keys: submodules-

- name: Update git submodules
Expand Down

0 comments on commit d35bf34

Please sign in to comment.