This repository has been archived by the owner on Oct 31, 2023. It is now read-only.
Generate Data #461
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: Generate Data | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
workflow_dispatch: | |
env: | |
GIT_CONFIG_NAME: "[Automated] Yui" | |
GIT_CONFIG_EMAIL: [email protected] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 17 | |
cache: "npm" | |
- run: npm ci | |
- name: ποΈ Generate data | |
run: npm start | |
- name: π Push data | |
uses: zyrouge/[email protected] | |
with: | |
directory: dist | |
branch: data | |
local-username: ${{ env.GIT_CONFIG_NAME }} | |
local-email: ${{ env.GIT_CONFIG_EMAIL }} | |
commit-message: "[automated] update data (${{ github.sha }})" | |
allow-empty-commit: true |