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