Skip to content

Take screenshots

Take screenshots #695

Workflow file for this run

name: Take screenshots
on:
schedule:
- cron: 0 5 * * *
workflow_dispatch:
jobs:
screenshots:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: "16"
- run: npm install
- name: Take screenshots
id: screenshots
run: npm run screenshots
- name: Commit screenshots
if: ${{ steps.screenshots.outputs.should-commit == 'true' }}
env:
PATCH: ${{ steps.screenshots.outputs.patch }}
run: |
git config user.name kristiandrex
git config user.email cristiandrestorres@gmail.com
git add -A
git commit -m "Take screenshots of patch $PATCH"
git push