From b1ccb213042363ab8fb1e73c6c87a5f5822cee9b Mon Sep 17 00:00:00 2001 From: Casion Date: Fri, 4 Nov 2022 11:26:23 +0800 Subject: [PATCH 1/3] Update dead-link-checker.yml --- .github/workflows/dead-link-checker.yml | 38 ++++++++++++++++++------- 1 file changed, 27 insertions(+), 11 deletions(-) diff --git a/.github/workflows/dead-link-checker.yml b/.github/workflows/dead-link-checker.yml index 8c2f8ef48..009df423c 100644 --- a/.github/workflows/dead-link-checker.yml +++ b/.github/workflows/dead-link-checker.yml @@ -1,17 +1,33 @@ -on: - pull_request +name: Build and Deploy +on: + pull_request: + branches: [master,dev-*] + push: + branches: [master,dev-*] + schedule: + # Run everyday at 9:00 AM (See https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07) + - cron: "0 5 * * *" +# A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - CheckDeadLinks: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on runs-on: ubuntu-latest - timeout-minutes: 30 - if: (github.repository == 'WeDataSphere/Visualis') + + # Steps represent a sequence of tasks that will be executed as part of the job steps: - - uses: actions/checkout@v3 - - uses: gaurav-nelson/github-action-markdown-link-check@v1 + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2.3.4 + - uses: actions/setup-node@v2.2.0 + with: + node-version: 14 + + - name: Link checker + uses: untitaker/hyperlink@0.1.21 with: - use-quiet-mode: 'no' - use-verbose-mode: 'yes' - folder-path: '../' - config-file: '.github/workflows/dlc.json' \ No newline at end of file + args: /home/runner/work/incubator-linkis-website/incubator-linkis-website/build + + + From 6032265e8eb74fcbf6e689acdb81d7215430a897 Mon Sep 17 00:00:00 2001 From: Casion Date: Fri, 4 Nov 2022 11:27:31 +0800 Subject: [PATCH 2/3] Update dead-link-checker.yml --- .github/workflows/dead-link-checker.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/dead-link-checker.yml b/.github/workflows/dead-link-checker.yml index 009df423c..19af30e04 100644 --- a/.github/workflows/dead-link-checker.yml +++ b/.github/workflows/dead-link-checker.yml @@ -1,4 +1,4 @@ -name: Build and Deploy +name: Link checker on: pull_request: @@ -26,8 +26,6 @@ jobs: - name: Link checker uses: untitaker/hyperlink@0.1.21 - with: - args: /home/runner/work/incubator-linkis-website/incubator-linkis-website/build From afb32c1feefb7ad8d80639e3c2a98d0ab98dc9d2 Mon Sep 17 00:00:00 2001 From: Casion Date: Fri, 4 Nov 2022 11:30:17 +0800 Subject: [PATCH 3/3] Update dead-link-checker.yml --- .github/workflows/dead-link-checker.yml | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/.github/workflows/dead-link-checker.yml b/.github/workflows/dead-link-checker.yml index 19af30e04..8f1e2a5f7 100644 --- a/.github/workflows/dead-link-checker.yml +++ b/.github/workflows/dead-link-checker.yml @@ -9,23 +9,18 @@ on: # Run everyday at 9:00 AM (See https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07) - cron: "0 5 * * *" -# A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - # This workflow contains a single job called "build" - build: - # The type of runner that the job will run on + CheckDeadLinks: runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job + timeout-minutes: 30 steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2.3.4 - - uses: actions/setup-node@v2.2.0 + - uses: actions/checkout@v3 + - uses: gaurav-nelson/github-action-markdown-link-check@v1 with: - node-version: 14 - - - name: Link checker - uses: untitaker/hyperlink@0.1.21 + use-quiet-mode: 'no' + use-verbose-mode: 'yes' + folder-path: '../' + config-file: '.github/workflows/dlc.json'