From 3b04b0d96993c504f6b00b6caa5c7f8dcede6ada Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Mon, 13 Jan 2025 08:20:55 +0000 Subject: [PATCH] build: check for ignored files being included in repo --- .forgejo/workflows/push-next.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.forgejo/workflows/push-next.yml b/.forgejo/workflows/push-next.yml index f82a28a..c260dfe 100644 --- a/.forgejo/workflows/push-next.yml +++ b/.forgejo/workflows/push-next.yml @@ -30,9 +30,19 @@ 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 + - name: Machete run: cargo +${{ matrix.toolchain.name }} machete