From 033af5718111feb3f8e864211120d1ce4460f051 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Wed, 3 Jan 2024 09:10:45 +0100 Subject: [PATCH] ci: fix tidy check Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- .github/workflows/static.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 84fdfa661a..b6e3f45bac 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -39,12 +39,15 @@ jobs: - name: Check if modifications were made run: | diff=$(git diff) - if [[ -n "$diff" ]]; then + if [[ -z "$diff" ]]; then echo "Everything is tidy and generated." exit 0 fi cat << EOF >> "${GITHUB_STEP_SUMMARY}" + Run \`nix run .#generate\` to generate and tidy Go code." \`\`\`diff ${diff} \`\`\` EOF + echo "Module is not tidy, check the GitHub run summary for the diff." + exit 1