From 36b16d116a7d86699124a415fb4872cafeb774bb Mon Sep 17 00:00:00 2001 From: Tristan Wilson Date: Tue, 9 Jul 2024 12:10:54 +0200 Subject: [PATCH] Try to do fetching as part of checkout action --- .github/workflows/submodule-pin-check.sh | 2 +- .github/workflows/submodule-pin-check.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/submodule-pin-check.sh b/.github/workflows/submodule-pin-check.sh index ffabedf1568..a9dc7dc1357 100755 --- a/.github/workflows/submodule-pin-check.sh +++ b/.github/workflows/submodule-pin-check.sh @@ -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 diff --git a/.github/workflows/submodule-pin-check.yml b/.github/workflows/submodule-pin-check.yml index e40594cf8ec..e459bad34d3 100644 --- a/.github/workflows/submodule-pin-check.yml +++ b/.github/workflows/submodule-pin-check.yml @@ -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