Skip to content

main

main #20268

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: main
on:
schedule:
- cron: '*/60 * * * *'
# 每小时执行一次
workflow_dispatch: # 手动执行workflow
env:
USER_ID: ${{ secrets.USER_ID }}
TENANT: ${{ secrets.TENANT }}
CLIENT_ID: ${{secrets.CLIENT_ID}}
CLIENT_SECRET: ${{secrets.CLIENT_SECRET}}
DRAFT_MAIL_TITLE: 'create draft'
DRAFT_MAIL_ADDRESS: ${{secrets.SEND_MAIL_ADDRESS}}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'yarn'
- run: yarn
- run: yarn start