This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
Update actions/checkout action to v4 #389
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Capture screenshots | |
on: | |
pull_request: | |
branches: | |
- master | |
schedule: | |
- cron: 0 2 * * 1-5 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | |
- uses: actions/setup-node@v2 | |
with: | |
version: 12 | |
- name: Capture screenshots and commit | |
env: | |
GITHUB_API_TOKEN: ${{secrets.GITHUB_API_TOKEN}} | |
run: | | |
yarn | |
yarn build | |
git remote set-url origin https://x-access-token:[email protected]/mdx-js/showcase.git | |
git config --global user.email "[email protected]" | |
git config --global user.name "Johno Bot" | |
git add . | |
git commit -m "Captured latest screenshots" | |
git push |