From 724b9ba56f8fd3dc892e0cd49373c16e4feda0e5 Mon Sep 17 00:00:00 2001 From: literat Date: Mon, 16 Dec 2024 11:53:44 +0100 Subject: [PATCH] Chore(ci): Check for the clean working directory after the build * we sometimes forget to built and commit an exporter build * this stops publishing of the packages because of dirty working directory --- .github/workflows/build.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index dd8a407553..05ae05ee68 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -45,3 +45,11 @@ jobs: - name: Build packages run: yarn build + + - name: Check for clean working directory + run: | + if [[ -n "$(git status --porcelain)" ]]; then + echo "Error: Git working directory is not clean" + git status + exit 1 + fi