tools: makefile: push_markdown/html: include the hash of the source commit in the commit message

- edit a random description so we have something to commit to the markdown repository
This commit is contained in:
nodiscc 2023-07-28 13:53:06 +02:00
parent fe5a61c559
commit 69b76a3961
No known key found for this signature in database
GPG key ID: 067FC4266A4B6909
2 changed files with 5 additions and 3 deletions

View file

@ -48,17 +48,19 @@ export_html:
.PHONY: push_markdown # commit and push changes to the markdown repository
push_markdown:
$(eval COMMIT_HASH=$(shell git rev-parse --short HEAD))
cd awesome-selfhosted && git remote set-url origin git@github.com:$(MARKDOWN_REPOSITORY)
cd awesome-selfhosted && git config user.name awesome-selfhosted-bot && git config user.email github-actions@github.com
cd awesome-selfhosted && git add . && (git diff-index --quiet HEAD || git commit -m "[bot] build markdown repository")
cd awesome-selfhosted && git add . && (git diff-index --quiet HEAD || git commit -m "[bot] build markdown from awesome-selfhosted-data $(COMMIT_HASH)")
cd awesome-selfhosted && git push -f
.PHONY: push_html # commit and push changes to the HTML site repository (amend previous commit and force-push)
push_html:
$(eval COMMIT_HASH=$(shell git rev-parse --short HEAD))
mv html/html/* awesome-selfhosted-html-preview/
cd awesome-selfhosted-html-preview/ && git remote set-url origin git@github.com:$(HTML_REPOSITORY)
cd awesome-selfhosted-html-preview/ && git config user.name awesome-selfhosted-bot && git config user.email github-actions@github.com
cd awesome-selfhosted-html-preview/ && git add . && (git diff-index --quiet HEAD || git commit --amend -m "[bot] build HTML site")
cd awesome-selfhosted-html-preview/ && git add . && (git diff-index --quiet HEAD || git commit --amend -m "[bot] build HTML from awesome-selfhosted-data $(COMMIT_HASH)")
cd awesome-selfhosted-html-preview/ && git push -f
.PHONY: url_check # check URLs for dead links or other connection problems

View file

@ -1,6 +1,6 @@
name: Framadate
website_url: https://framadate.org/abc/
description: 'Online service for planning an appointment or make a decision quickly and easily: Make a poll, Define dates or subjects to choose, Send the poll link to your friends or colleagues, Discuss and make a decision.'
description: 'Online service for planning an appointment or make a decision quickly and easily: Make a poll, define dates or subjects to choose, send the poll link to your friends or colleagues, discuss and make a decision.'
licenses:
- CECILL-B
platforms: