From b9f8e0b9e3d0431aa80ae3e214f02c8f63494079 Mon Sep 17 00:00:00 2001 From: Shahzeb Siddiqui Date: Tue, 4 Feb 2020 07:44:27 -0500 Subject: [PATCH 1/4] urlchecker github action --- urlchecker | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 urlchecker diff --git a/urlchecker b/urlchecker new file mode 100644 index 00000000..6d41475b --- /dev/null +++ b/urlchecker @@ -0,0 +1,20 @@ +name: Check URLs + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: URLs-checker + uses: SuperKogito/URLs-checker@0.1.2 + with: + # The project base path. + git_path: https://github.com/easybuilders/easybuild + + # A comma-separated list of file types to cover in the URL checks + file_types: .md,.py,.rst,.eb,.sh + + # Choose whether to include file with no URLs in the prints. + print_all: False From 02b8ce0613f37abe82c2a29df01f3fd9624fa2a1 Mon Sep 17 00:00:00 2001 From: Shahzeb Siddiqui Date: Fri, 7 Feb 2020 09:52:48 -0500 Subject: [PATCH 2/4] move file to .github/workflows and forgot the .yml extension Invoke action on develop,master upon PR and only on push to master branch. Since most documentation will get merged to develop first, it makes no sense to check a PR to master branch. Its only in case if push is directed to master branch directly without going through develop first. --- urlchecker => .github/workflows/urlchecker.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) rename urlchecker => .github/workflows/urlchecker.yml (70%) diff --git a/urlchecker b/.github/workflows/urlchecker.yml similarity index 70% rename from urlchecker rename to .github/workflows/urlchecker.yml index 6d41475b..07fa781a 100644 --- a/urlchecker +++ b/.github/workflows/urlchecker.yml @@ -1,7 +1,15 @@ name: Check URLs -on: [push] - +on: + # Trigger the workflow on push or pull request, + # but only for the master branch + push: + branches: + - master + pull_request: + branches: + - master + - develop jobs: build: runs-on: ubuntu-latest From 7e86656a8d784fe151372a14966364ca8ee27617 Mon Sep 17 00:00:00 2001 From: Shahzeb Siddiqui Date: Fri, 7 Feb 2020 10:16:01 -0500 Subject: [PATCH 3/4] update urlcheck workflow --- .github/workflows/urlchecker.yml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/.github/workflows/urlchecker.yml b/.github/workflows/urlchecker.yml index 07fa781a..a5c1fef0 100644 --- a/.github/workflows/urlchecker.yml +++ b/.github/workflows/urlchecker.yml @@ -1,28 +1,19 @@ name: Check URLs -on: - # Trigger the workflow on push or pull request, - # but only for the master branch - push: - branches: - - master - pull_request: - branches: - - master - - develop +on: [push, pull_request] jobs: - build: + urlcheck: runs-on: ubuntu-latest steps: - name: URLs-checker - uses: SuperKogito/URLs-checker@0.1.2 + uses: SuperKogito/URLs-checker@0.1.3 with: # The project base path. git_path: https://github.com/easybuilders/easybuild # A comma-separated list of file types to cover in the URL checks - file_types: .md,.py,.rst,.eb,.sh + file_types: .md,.py,.rst,.sh # Choose whether to include file with no URLs in the prints. print_all: False From ffee46e0f2a69637663b28a60faaa76c620654fa Mon Sep 17 00:00:00 2001 From: ocaisa Date: Fri, 7 Feb 2020 16:27:32 +0100 Subject: [PATCH 4/4] Update urlchecker.yml --- .github/workflows/urlchecker.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/urlchecker.yml b/.github/workflows/urlchecker.yml index a5c1fef0..e70f2a2d 100644 --- a/.github/workflows/urlchecker.yml +++ b/.github/workflows/urlchecker.yml @@ -17,3 +17,6 @@ jobs: # Choose whether to include file with no URLs in the prints. print_all: False + + # A comma separated patterns to exclude during URL checks + white_listed_patterns: https://github.com/easybuilders/easybuild-easyblocks,https://github.com/easybuilders/easybuild-easyconfigs,https://github.com/easybuilders/easybuild-framework