add dependencies
This commit is contained in:
1 parent
2e7b67d991
commit
59f1ce7d31
1 file changed
+7
-5
@@ -40,15 +40,17 @@ jobs:
|
|||||||
working-directory: server
|
working-directory: server
|
||||||
run: npm run format-check
|
run: npm run format-check
|
||||||
close-pr-if-needed:
|
close-pr-if-needed:
|
||||||
needs: [format-client, format-server]
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
needs: [format-client, format-server]
|
||||||
if: |
|
if: |
|
||||||
needs.format-client.result == 'failure' ||
|
always() && (
|
||||||
needs.format-server.result == 'failure'
|
needs.format-client.result == 'failure' ||
|
||||||
|
needs.format-server.result == 'failure'
|
||||||
|
)
|
||||||
steps:
|
steps:
|
||||||
- name: Close PR
|
- name: Close PR
|
||||||
uses: peter-evans/close-pull@v3
|
uses: peter-evans/close-pull@v3
|
||||||
with:
|
with:
|
||||||
comment: |
|
comment: |
|
||||||
❌ PR closed automatically because formatting failed in one or more modules.
|
❌ Formatting check failed — PR auto-closed.
|
||||||
Please run `npm run format` in both `client/` and `server/` before pushing again.
|
Please run `npm run format` and push again.
|
||||||
Reference in new issue
Block a user