Skip to content

cron

cron #1590

Workflow file for this run

name: cron
on:
schedule:
- cron: "1 0 * * *"
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: "13.x"
# Maybe switch to https://github.com/bahmutov/npm-install
- name: Cache node modules
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install
run: |
npm ci
- name: Collect
run: |
npm start
- name: Add
run: |
git config --global user.email "davidtronfivethousand@gmail.com"
git config --global user.name "David Wells Bot"
git status
git add .
git commit -m ":package: Update Downloads"
- name: Push
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}