tools: github actions: always run URL checks last in all workflows

- make errors fatal/exit with code 1 if any checks are unsuccessful
This commit is contained in:
nodiscc
2023-01-24 17:51:03 +01:00
parent 6ad29ab5b8
commit 0f3b106e12
3 changed files with 7 additions and 6 deletions

View File

@@ -10,6 +10,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: make url_check
- run: make awesome_lint
- run: make export
- run: make url_check

View File

@@ -12,5 +12,6 @@ steps:
- 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

@@ -22,11 +22,6 @@ 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 && \
@@ -39,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