Skip to content

Script de automação dos envio de emails #32

Script de automação dos envio de emails

Script de automação dos envio de emails #32

Workflow file for this run

name: Script de automação dos envio de emails
on:
workflow_dispatch:
schedule:
- cron: "00 15 * * 1" # todos as segunda-feiras às 12:00
jobs:
run-js:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "18.x"
- name: Install dependencies
run: |
cd backend/newsletter
npm install
- name: Run Script
working-directory: backend/newsletter
env:
URL_CHIMP: ${{ secrets.URL_CHIMP }}
API: ${{ secrets.API }}
GMAIL_USER: ${{ secrets.GMAIL_USER }}
GMAIL_PASS: ${{ secrets.GMAIL_PASS }}
run: |
node sendEmails.js