Daily Print Email Bot #655
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Daily Print Email Bot' | |
on: | |
push: | |
schedule: | |
- cron: '0 22 */1 * *' | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout codes' | |
uses: actions/checkout@v2 | |
- name: 'use node 10' | |
uses: actions/setup-node@v1 | |
- name: 'Run email task' | |
env: | |
sender: ${{ secrets.SENDER }} | |
receiver: ${{ secrets.RECEIVER }} | |
sender_pass: ${{ secrets.SENDER_PASS }} | |
run: npm install && npm run email |