Skip to content

Run Node.js script daily #58

Run Node.js script daily

Run Node.js script daily #58

Workflow file for this run

name: Run Node.js script daily
on:
schedule:
# Runs at 00:00 UTC every day
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
run-script:
runs-on: ubuntu-latest
env:
TEAMS_WEBHOOK_URL: ${{ secrets.TEAMS_WEBHOOK_URL }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "20"
- name: Run script
run: node index.js