mirror of
https://github.com/awesome-selfhosted/awesome-selfhosted-data.git
synced 2026-03-11 08:55:24 +00:00
tools: github actions: fail/display red badge when unmaintained projects are detected
- lower error/warning days threshold, but only for the scheduled/daily check (leave thresholds unchanged for pull requests/pre-build checks) - error if 365 days without updated, warning if 186 days without updates - update hecat to v1.1.0 https://github.com/nodiscc/hecat/releases/tag/1.1.0 - fixes https://github.com/awesome-selfhosted/awesome-selfhosted-data/issues/50
This commit is contained in:
parent
91a7905308
commit
7e97f588e2
4 changed files with 20 additions and 3 deletions
|
|
@ -18,4 +18,4 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: make install
|
||||
- run: make awesome_lint
|
||||
- run: make awesome_lint_strict
|
||||
|
|
|
|||
12
.hecat/awesome-lint-strict.yml
Normal file
12
.hecat/awesome-lint-strict.yml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# doc: https://github.com/nodiscc/hecat/blob/master/hecat/processors/awesome_lint.py
|
||||
steps:
|
||||
- name: check data against awesome-selfhosted guidelines (strict)
|
||||
module: processors/awesome_lint
|
||||
module_options:
|
||||
source_directory: ./
|
||||
items_in_delegate_to_fatal: False
|
||||
last_updated_error_days: 365
|
||||
last_updated_warn_days: 186
|
||||
licenses_files:
|
||||
- licenses.yml
|
||||
- licenses-nonfree.yml
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
# doc: https://github.com/nodiscc/hecat/blob/master/hecat/processors/awesome_lint.py
|
||||
steps:
|
||||
- name: data against awesome-selfhosted guidelines
|
||||
- name: check data against awesome-selfhosted guidelines
|
||||
module: processors/awesome_lint
|
||||
module_options:
|
||||
source_directory: ./
|
||||
|
|
|
|||
7
Makefile
7
Makefile
|
|
@ -8,7 +8,7 @@ install:
|
|||
python3 -m venv .venv
|
||||
source .venv/bin/activate && \
|
||||
pip3 install wheel && \
|
||||
pip3 install --force git+https://github.com/nodiscc/hecat.git@1.0.2
|
||||
pip3 install --force git+https://github.com/nodiscc/hecat.git@1.1.0
|
||||
|
||||
.PHONY: import # import data from original list at https://github.com/awesome-selfhosted/awesome-selfhosted
|
||||
import: clean install
|
||||
|
|
@ -30,6 +30,11 @@ awesome_lint:
|
|||
source .venv/bin/activate && \
|
||||
hecat --config .hecat/awesome-lint.yml
|
||||
|
||||
.PHONY: awesome_lint # check data against awesome-selfhosted guidelines (strict)
|
||||
awesome_lint_strict:
|
||||
source .venv/bin/activate && \
|
||||
hecat --config .hecat/awesome-lint-strict.yml
|
||||
|
||||
.PHONY: export_markdown # render markdown export from YAML data (https://github.com/awesome-selfhosted/awesome-selfhosted)
|
||||
export_markdown:
|
||||
rm -rf awesome-selfhosted/
|
||||
|
|
|
|||
Loading…
Reference in a new issue