From 649788e49f5cc5c7659947d7f045f97b6d2db824 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E7=88=B1=E5=90=83=E7=99=BD=E8=90=9D?= =?UTF-8?q?=E5=8D=9C?= Date: Wed, 15 Mar 2023 23:04:47 +0800 Subject: [PATCH] chore: ci of build info (#41264) * chore: ci of build info * chore: more --- .github/workflows/mock-project-build.yml | 14 +++++++++++++- scripts/ci-mock-project-build.sh | 6 +++--- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/mock-project-build.yml b/.github/workflows/mock-project-build.yml index 1222bf534d..9719f183f7 100644 --- a/.github/workflows/mock-project-build.yml +++ b/.github/workflows/mock-project-build.yml @@ -2,16 +2,28 @@ name: Mock Project Build on: + workflow_dispatch: schedule: - - cron: "*/30 * * * *" + - cron: '*/30 * * * *' jobs: pr-check-ci: runs-on: ubuntu-latest name: Build Project steps: + - name: checkout + uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: 16 + - name: Run Script run: bash ./scripts/ci-mock-project-build.sh + + - uses: actions-cool/ci-notice@v1 + if: ${{ failure() }} + with: + notice-types: 'dingding' + dingding-token: ${{ secrets.DINGDING_BOT_COLLABORATOR_TOKEN }} + notice-title: 'CI Mock Project Build Failed' diff --git a/scripts/ci-mock-project-build.sh b/scripts/ci-mock-project-build.sh index f81918f1ed..0e5ff0cdce 100644 --- a/scripts/ci-mock-project-build.sh +++ b/scripts/ci-mock-project-build.sh @@ -4,11 +4,11 @@ rm -rf ~tmpProj/ # clone project -git clone https://github.com/ant-design/ant-design-pro.git ~tmpProj --depth=1 +git clone https://github.com/ant-design/create-next-app-antd.git ~tmpProj --depth=1 # install cd ~tmpProj -tnpm i +yarn # build -npm run build \ No newline at end of file +yarn run build \ No newline at end of file