From ca90fa6c21fe923b7be2b4735849555f4371f5dd Mon Sep 17 00:00:00 2001 From: Florian Hotze Date: Wed, 11 Dec 2024 16:47:10 +0100 Subject: [PATCH] CI build: Verify there are no changed files (#405) Signed-off-by: Florian Hotze --- .github/workflows/build.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a83beae8..56a8e484 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -34,7 +34,20 @@ jobs: if: steps.cache.outputs.cache-hit != 'true' run: npm ci - - run: npm run build + - name: Build + run: npm run build + + - name: Verify Changed Files + uses: tj-actions/verify-changed-files@v20 + id: verify-changed-files + + - name: Fail on Changed Files + if: steps.verify-changed-files.outputs.changed_files != '' + env: + CHANGED_FILES: ${{ steps.verify-changed-files.outputs.changed_files }} + run: | + echo "::error::Files have changed: $CHANGED_FILES" + exit 1 - name: Upload build artifacts uses: actions/upload-artifact@v4