Skip to content

create data

create data #1488

Workflow file for this run

name: create data
on:
schedule:
- cron: '40 2 * * *'
jobs:
cron:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12.x'
registry-url: 'https://registry.npmjs.org'
- name: Cache node modules
uses: actions/cache@v2.0.0
env:
cache-name: cache-node-modules
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build-
- name: Install Dependencies
run: npm install
- name: NPM run
run: npm run dev
env:
OWNER: ${{ secrets.OWNER }}
REPO_NAME: ${{ secrets.REPO_NAME }}
USER_NAME: ${{ secrets.USER_NAME }}
USER_EMAIL: ${{ secrets.USER_EMAIL }}
GITHUB_TOKEN: ${{ secrets.TOKEN }}
GITHUB_URL: ${{ secrets.API_URL }}
DATA_DIR: ${{ secrets.DATA_DIR }}