tools: makefile/github actions: don't call make install target multiple times

- make install must only run manually when the build environment has not been set up yet
This commit is contained in:
nodiscc 2023-07-24 20:35:24 +02:00
parent 64dce41ca3
commit d157f626ce
No known key found for this signature in database
GPG key ID: 067FC4266A4B6909
5 changed files with 10 additions and 5 deletions

View file

@ -27,6 +27,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: make install
- run: make awesome_lint
- run: make export_markdown export_html
- name: setup markdown repository SSH deploy key

View file

@ -17,10 +17,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: make install
- run: make awesome_lint
link-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: make install
- run: make url_check

View file

@ -17,6 +17,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: make install
- run: make update_metadata
- name: commit and push changes
run: |

View file

@ -13,5 +13,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: make install
- run: make awesome_lint
- run: make export_markdown

View file

@ -21,24 +21,24 @@ import: clean install
hecat --config .hecat/import.yml
.PHONY: update_metadata # update metadata from project repositories/API
update_metadata: install
update_metadata:
source .venv/bin/activate && \
hecat --config .hecat/update-metadata.yml
.PHONY: awesome_lint # check data against awesome-selfhosted guidelines
awesome_lint: install
awesome_lint:
source .venv/bin/activate && \
hecat --config .hecat/awesome-lint.yml
.PHONY: export_markdown # render markdown export from YAML data (https://github.com/awesome-selfhosted/awesome-selfhosted)
export_markdown: install
export_markdown:
rm -rf awesome-selfhosted/
git clone https://github.com/$(MARKDOWN_REPOSITORY)
source .venv/bin/activate && hecat --config .hecat/export-markdown.yml
cd awesome-selfhosted && git diff --color=always
.PHONY: export_html # render HTML export from YAML data (https://nodiscc.github.io/awesome-selfhosted-html-preview/)
export_html: install
export_html:
rm -rf awesome-selfhosted-html-preview/ html/
git clone https://github.com/$(HTML_REPOSITORY)
mkdir html && source .venv/bin/activate && hecat --config .hecat/export-html.yml
@ -62,7 +62,7 @@ push_html:
cd awesome-selfhosted-html-preview/ && git push -f
.PHONY: url_check # check URLs for dead links or other connection problems
url_check: install
url_check:
source .venv/bin/activate && \
hecat --config .hecat/url-check.yml