shots workflow: commit the rendered icons too; rerun when the icon or the script changes

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K6897PWcUEwHiqZMcVnNF6
This commit is contained in:
teahubxyzandClaude Fable 5.1 committed 2026-10-20 23:41:25 +00:00
1 parent 8c01818950
commit 4140f511f2
1 file changed
+4 -4
+4 -4
View File
@@ -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"