Skip to content

Run Node.js script daily #69

Run Node.js script daily

Run Node.js script daily #69

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@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Run script
run: node index.js