mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-15 04:18:51 +00:00
Merge pull request #13578 from is-a-dev/wdhdev/close-validation-fails
chore: close prs on validation fail
This commit is contained in:
1 file changed
+5
-1
@@ -1,4 +1,5 @@
|
|||||||
name: Checks
|
name: Checks
|
||||||
|
|
||||||
on: [pull_request, workflow_dispatch]
|
on: [pull_request, workflow_dispatch]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -13,4 +14,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
bun-version: latest
|
bun-version: latest
|
||||||
- run: bun install
|
- run: bun install
|
||||||
- run: bun test
|
- name: Run tests
|
||||||
|
run: bun test || (echo 'Tests failed, closing pull request.' && gh pr close https://github.com/${{ github.repository }}/pull/${{ github.event.number }} --comment "Due to high amounts of pull requests and not enough resources to review all, we are automatically closing pull requests that fail checks. Please read the documention (https://www.is-a.dev/docs) to ensure your file format is correct. If you still are encountering issues, please join our [Discord server](https://discord.gg/is-a-dev-830872854677422150) and open a help thread." && exit 1)
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
Reference in new issue
Block a user