From 32f5771918c98c1a11f77b547b94d71d9e9bcf50 Mon Sep 17 00:00:00 2001 From: luc Date: Thu, 10 Sep 2026 22:21:27 +0200 Subject: [PATCH 1/3] gsite.sh: add --- gsite.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 gsite.sh diff --git a/gsite.sh b/gsite.sh new file mode 100755 index 0000000..6689bdd --- /dev/null +++ b/gsite.sh @@ -0,0 +1,24 @@ +#!/bin/bash +set -euo pipefall + +wow=$(shuf -n 1 wow.txt) +commit_message=$(git log -1 --pretty=%s) +date=$(date --iso-8601=seconds) + +mkdir -p public + +cat > public/index.html < + + + + Commit words of wisdom + + +

Commit words of wisdom

+

${wow}

+

Latest commit: ${commit_message}

+

Generated: ${date}

+ + +EOF From db54007fd423e5aef617d22556cabc291309493e Mon Sep 17 00:00:00 2001 From: luc Date: Thu, 10 Sep 2026 22:21:44 +0200 Subject: [PATCH 2/3] wow.txt: add --- wow.txt | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 wow.txt diff --git a/wow.txt b/wow.txt new file mode 100644 index 0000000..3763fc6 --- /dev/null +++ b/wow.txt @@ -0,0 +1,5 @@ +Life is a hopeless endeavour. +What remains in world void of desires? +Dullness comes close to bliss. +Actions are merely actions. +Among us shrubs only shrubs exist. From a58bd130881aeadea7b77dbf46dc63754b86cd43 Mon Sep 17 00:00:00 2001 From: luc Date: Thu, 10 Sep 2026 22:21:56 +0200 Subject: [PATCH 3/3] .forgejo/workflows/wow.yml: add --- .forgejo/workflows/wow.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .forgejo/workflows/wow.yml diff --git a/.forgejo/workflows/wow.yml b/.forgejo/workflows/wow.yml new file mode 100644 index 0000000..55abb17 --- /dev/null +++ b/.forgejo/workflows/wow.yml @@ -0,0 +1,27 @@ +# .forgejo/workflows/wow.yml +name: "Generate commit words of wisdom" + +on: + push: + branches: ["main"] + workflow_dispatch: + +jobs: + build: + runs-on: "docker" + + steps: + - name: "Check out repository" + uses: actions/checkout@v4 + + - name: "Generate website" + run: ./gsite.sh + + - name: "Show generated page" + run: cat public/index.html + + - name: "Upload website artifact" + uses: actions/upload-artifact@v4 + with: + name: "commit-fortune-site" + path: public/