mirror of
https://github.com/awesome-selfhosted/awesome-selfhosted-data.git
synced 2026-03-11 08:55:24 +00:00
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:
parent
64dce41ca3
commit
d157f626ce
5 changed files with 10 additions and 5 deletions
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
2
.github/workflows/daily-checks.yml
vendored
2
.github/workflows/daily-checks.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
1
.github/workflows/daily-update-metadata.yml
vendored
1
.github/workflows/daily-update-metadata.yml
vendored
|
|
@ -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: |
|
||||
|
|
|
|||
1
.github/workflows/pull-request.yml
vendored
1
.github/workflows/pull-request.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
10
Makefile
10
Makefile
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue