mirror of
https://github.com/awesome-selfhosted/awesome-selfhosted-data.git
synced 2026-03-11 08:55:24 +00:00
tools: github actions: add automatic URL checks using hecat/url_check module
This commit is contained in:
parent
8db83e4fd0
commit
28005c507e
4 changed files with 23 additions and 0 deletions
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
|
@ -9,5 +9,6 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: make url_check
|
||||
- run: make awesome_lint
|
||||
- run: make export
|
||||
|
|
|
|||
1
.github/workflows/update-metadata.yml
vendored
1
.github/workflows/update-metadata.yml
vendored
|
|
@ -11,6 +11,7 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: make update_metadata
|
||||
- run: make url_check
|
||||
- run: make awesome_lint
|
||||
- run: make export
|
||||
- name: commit and push changes
|
||||
|
|
|
|||
16
.hecat/url-check.yml
Normal file
16
.hecat/url-check.yml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
steps:
|
||||
- name: check URLs
|
||||
module: processors/url_check
|
||||
module_options:
|
||||
source_directories:
|
||||
- software
|
||||
- tags
|
||||
source_files:
|
||||
- licenses.yml
|
||||
check_keys:
|
||||
- url
|
||||
- source_code_url
|
||||
- website_url
|
||||
- demo_url
|
||||
exclude_regex:
|
||||
- '^https://github.com/[\w\.\-]+/[\w\.\-]+$' # don't check URLs that will be processed by the github_metadata module
|
||||
5
Makefile
5
Makefile
|
|
@ -22,6 +22,11 @@ update_metadata: install
|
|||
source .venv/bin/activate && \
|
||||
hecat --config .hecat/update-metadata.yml
|
||||
|
||||
.PHONY: url_check # check URLs for dead links or other connection problems
|
||||
url_check: install
|
||||
source .venv/bin/activate && \
|
||||
hecat --config .hecat/url-check.yml
|
||||
|
||||
.PHONY: awesome_lint # check data against awesome-selfhosted guidelines
|
||||
awesome_lint: install
|
||||
source .venv/bin/activate && \
|
||||
|
|
|
|||
Loading…
Reference in a new issue