From b6d7fc95e77d28be4a7b16b16ace1cfc71810c90 Mon Sep 17 00:00:00 2001 From: Hazel Date: Tue, 21 Nov 2023 18:55:45 +0000 Subject: [PATCH] yaml --- .github/workflows/build-shit.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-shit.yml b/.github/workflows/build-shit.yml index 0b3cac25e..fb3cd16a7 100644 --- a/.github/workflows/build-shit.yml +++ b/.github/workflows/build-shit.yml @@ -18,12 +18,13 @@ jobs: submodules: 'recursive' token: ${{ secrets.GH_RO_PAT }} - name: check whether submodules exist - run: + run: | # debug output echo gh=${{ github.sha }} echo head=$(git rev-parse HEAD) echo art=$(git -C art rev-parse HEAD) echo assets=$(git -C assets rev-parse HEAD) + # checks if HEAD commit hash in submodules is diff from current repo, and therefore exists test $(git rev-parse HEAD) != $(git -C art rev-parse HEAD) test $(git rev-parse HEAD) != $(git -C assets rev-parse HEAD)