From 5d372a60de083347dc9bd7b16b27cb96880d89f6 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Mon, 13 Jan 2025 08:43:00 +0000 Subject: [PATCH] build: check for ignored files being included in repo --- .forgejo/workflows/{test.yml => push-next.yml} | 9 +++++++++ 1 file changed, 9 insertions(+) rename .forgejo/workflows/{test.yml => push-next.yml} (75%) diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/push-next.yml similarity index 75% rename from .forgejo/workflows/test.yml rename to .forgejo/workflows/push-next.yml index 4a12799..f17055e 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/push-next.yml @@ -18,6 +18,15 @@ jobs: steps: - 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: Machete run: cargo machete