Merge branch 'url-check'

This commit is contained in:
nodiscc 2023-01-24 17:52:37 +01:00
commit fd8ff7a81e
No known key found for this signature in database
GPG key ID: 067FC4266A4B6909
4 changed files with 25 additions and 0 deletions

View file

@ -1,5 +1,6 @@
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
@ -11,3 +12,4 @@ jobs:
- uses: actions/checkout@v3
- run: make awesome_lint
- run: make export
- run: make url_check

View file

@ -20,3 +20,4 @@ jobs:
git add software/ tags/ platforms/ licenses*.yml
git diff-index --quiet HEAD || git commit -m "[bot] update projects metadata"
git push
- run: make url_check

17
.hecat/url-check.yml Normal file
View file

@ -0,0 +1,17 @@
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
errors_are_fatal: True
exclude_regex:
- '^https://github.com/[\w\.\-]+/[\w\.\-]+$' # don't check URLs that will be processed by the github_metadata module

View file

@ -34,6 +34,11 @@ export: install
hecat --config .hecat/export.yml
cd awesome-selfhosted && git diff --color=always
.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: help # generate list of targets with descriptions
help:
@grep '^.PHONY: .* #' Makefile | sed 's/\.PHONY: \(.*\) # \(.*\)/\1 \2/' | expand -t20