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"