From 4140f511f20a0c8d99e6f09c26b3978fb3083671 Mon Sep 17 00:00:00 2001 From: teahubxyz Date: Tue, 20 Oct 2026 23:41:25 +0000 Subject: [PATCH] shots workflow: commit the rendered icons too; rerun when the icon or the script changes Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01K6897PWcUEwHiqZMcVnNF6 --- .gitea/workflows/shots.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/shots.yml b/.gitea/workflows/shots.yml index 56947fc..abc76d1 100644 --- a/.gitea/workflows/shots.yml +++ b/.gitea/workflows/shots.yml @@ -6,7 +6,7 @@ on: workflow_dispatch: push: branches: [main] - paths: [index.html, brain.js, favicon.svg] + paths: [index.html, brain.js, favicon.svg, icons/icon.svg, icons/icon.html, tools/shots.sh] permissions: contents: write concurrency: @@ -40,9 +40,9 @@ jobs: - name: commit run: | set -eu - git add shots/desktop.png - if git diff --cached --quiet; then echo "shot unchanged"; exit 0; fi - git -c user.name='gitea-actions[bot]' -c user.email='gitea-actions[bot]@users.noreply.teahub.xyz' commit -q -m "shots: desktop.png" + git add shots/desktop.png icons/icon-512.png icons/icon-192.png icons/apple-touch-icon.png + if git diff --cached --quiet; then echo "shots unchanged"; exit 0; fi + git -c user.name='gitea-actions[bot]' -c user.email='gitea-actions[bot]@users.noreply.teahub.xyz' commit -q -m "shots: desktop.png + icons" git push -q origin HEAD:main - name: tell Teahub pages to pull run: curl -fsS -X POST "https://gandora.yolopreneur.lol/_hook/gandora/site" || echo "pages pulls by itself within five minutes"