mirror of
https://github.com/awesome-selfhosted/awesome-selfhosted-data.git
synced 2026-03-11 08:55:24 +00:00
Merge branch 'url-check'
This commit is contained in:
commit
fd8ff7a81e
4 changed files with 25 additions and 0 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
1
.github/workflows/update-metadata.yml
vendored
1
.github/workflows/update-metadata.yml
vendored
|
|
@ -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
17
.hecat/url-check.yml
Normal 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
|
||||
5
Makefile
5
Makefile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue