From 59f1ce7d317efc9082b3f8625de7f30693d14411 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Sun, 1 Jun 2025 11:42:04 -0700 Subject: [PATCH] add dependencies --- .github/workflows/check-format.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check-format.yml b/.github/workflows/check-format.yml index 56a9dabff..1433d7409 100644 --- a/.github/workflows/check-format.yml +++ b/.github/workflows/check-format.yml @@ -40,15 +40,17 @@ jobs: working-directory: server run: npm run format-check close-pr-if-needed: - needs: [format-client, format-server] runs-on: ubuntu-latest + needs: [format-client, format-server] if: | - needs.format-client.result == 'failure' || - needs.format-server.result == 'failure' + always() && ( + needs.format-client.result == 'failure' || + needs.format-server.result == 'failure' + ) steps: - name: Close PR uses: peter-evans/close-pull@v3 with: comment: | - ❌ PR closed automatically because formatting failed in one or more modules. - Please run `npm run format` in both `client/` and `server/` before pushing again. + ❌ Formatting check failed — PR auto-closed. + Please run `npm run format` and push again.