From 30f930f333f20639b00a6c74efce7a15ec386ea7 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Mon, 13 Jan 2025 08:41:37 +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 7100e2b..13450c8 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 (Origin) uses: https://git.kemitix.net/kemitix/forgejo-todo-checker@v1.3.0