Skip to content

Heroshot

Heroshot #1

Workflow file for this run

name: Heroshot
on:
workflow_dispatch:
jobs:
screenshots:
name: Update Screenshots
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Run Heroshot
run: npx heroshot --session-key=${{ secrets.HEROSHOT_SESSION_KEY }}
- name: Commit and push changes
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add heroshots/
if git diff --staged --quiet; then
echo "No changes to commit"
else
git commit -m "chore: update heroshot screenshots"
git push
fi