Skip to content

Node.js CI

Node.js CI #283

Workflow file for this run

name: Node.js CI
on:
push:
branches:
- main
workflow_dispatch:
schedule:
# Runs at 00:00 UTC daily.
- cron: '0 0 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- run: node index.js
- name: setup git config
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
- name: commit
run: |
git add -A
git commit -m "chore: automatic image update" || true
git push origin $GITHUB_REF