From 59fa127967eab36d3cdd2adecc9f5b9102ac7fe7 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Mon, 13 Jan 2025 08:33:32 +0000 Subject: [PATCH] build: check for ignored files being included in repo --- .forgejo/workflows/push-next.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.forgejo/workflows/push-next.yml b/.forgejo/workflows/push-next.yml index 8ba6460..556f78c 100644 --- a/.forgejo/workflows/push-next.yml +++ b/.forgejo/workflows/push-next.yml @@ -30,6 +30,15 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Ignored Files + run: | + IGNORED=$(git ls-files --cached -i --exclude-standard) + if [ -n "$IGNORED" ] + then + echo "Ignored files present:\n$IGNORED" + exit 1 + fi + - name: Check TODOs uses: https://git.kemitix.net/kemitix/forgejo-todo-checker@v1.3.0