Skip to content

CI

CI #15197

# This is a basic workflow to help you get started with Actions
name: CI
on:
schedule:
- cron: "0 */2 * * *"
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Setup node.js
uses: actions/setup-node@v1
with:
node-version: "13.x"
- name: Install dependencies
run: cd data && npm ci
- name: Fetch data
run: cd data && npm run build
- name: Commit files
run: |
git config --global user.email "[email protected]"
git config --global user.name "github-actions"
git add .
git commit -m 'build: Update data' || true
- name: Push changes
uses: ad-m/github-push-action@fe38f0a751bf9149f0270cc1fe20bf9156854365
with:
github_token: ${{ secrets.GITHUB_TOKEN }}