Skip to content

Run Node.js Program #80

Run Node.js Program

Run Node.js Program #80

Workflow file for this run

name: Run Node.js Program
on:
schedule:
- cron: '0 11 * * *'
jobs:
run-script:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Run the script
run: node index.js
env:
MY_EMAIL: ${{ secrets.MY_EMAIL }}
MY_PASSWORD: ${{ secrets.MY_PASSWORD }}
EMAIL_TO: ${{ secrets.EMAIL_TO }}