From 09b04a807b8d14346140162ac1981c1ffcfd8b45 Mon Sep 17 00:00:00 2001 From: Marco Munizaga Date: Wed, 12 Jul 2023 16:32:13 -0700 Subject: [PATCH] Assert that git tree is clean --- .github/actions/run-interop-ping-test/action.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/actions/run-interop-ping-test/action.yml b/.github/actions/run-interop-ping-test/action.yml index b11b33931..75358902d 100644 --- a/.github/actions/run-interop-ping-test/action.yml +++ b/.github/actions/run-interop-ping-test/action.yml @@ -77,6 +77,16 @@ runs: run: npm run cache -- load shell: bash + - name: Assert Git tree is clean. + working-directory: ${{ steps.find-workdir.outputs.WORK_DIR }} + shell: bash + run: | + if [[ -n "$(git status --porcelain)" ]]; then + echo "Git tree is dirty. This means that building an impl generated something that should probably be .gitignore'd" + git status + exit 1 + fi + - name: Push the image cache if: env.PUSH_CACHE == 'true' working-directory: ${{ steps.find-workdir.outputs.WORK_DIR }}