This repository has been archived by the owner on May 28, 2024. It is now read-only.
SVG pregeneration preview #42
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: SVG pregeneration preview | |
on: | |
schedule: | |
# * is a special character in YAML so you have to quote this string | |
- cron: '45 23 * * 3' | |
- cron: '45 16 * * 4' | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: szenius/[email protected] | |
with: | |
timezoneLinux: "America/Los_Angeles" | |
- uses: actions/checkout@v2 | |
- run: | | |
git pull | |
npm install | |
npm run svgPregenPreview | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add img/generated/sparklines_staging/* | |
git commit -m "generated staging sparkline charts" | |
git push origin main | |