Skip to content

Commit

Permalink
Try to do fetching as part of checkout action
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristan-Wilson committed Jul 9, 2024
1 parent a4ace33 commit 36b16d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/submodule-pin-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ for mod in `git submodule --quiet foreach 'echo $name'`; do
branch=origin/HEAD
if [[ -v exceptions[$mod] ]]; then
branch=${exceptions[$mod]}
git -C $mod fetch `echo $branch | tr "/" " "`
#git -C $mod fetch `echo $branch | tr "/" " "`
fi

if ! git -C $mod merge-base --is-ancestor HEAD $branch; then
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/submodule-pin-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive

- name: Check all submodules are ancestors of origin/HEAD or configured branch
Expand Down

0 comments on commit 36b16d1

Please sign in to comment.