Skip to content

.github/workflows/scheduleNotification.yml #10

.github/workflows/scheduleNotification.yml

.github/workflows/scheduleNotification.yml #10

on:
workflow_dispatch:
schedule:
# 07:42 Shanghai time zone, every day
- cron: "42 23 * * *"
jobs:
main:
runs-on: ubuntu-latest
permissions:
issues: read
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Check issues that needs attention
run: node .github/scripts/notify-issues.js
env:
REPO_MAINTAINERS: ${{ vars.REPO_MAINTAINERS }}
WORKFLOW_MAINTAINER_EMAIL: ${{ vars.SCHEDULED_NOTIFICATION_MAINTAINER_EMAIL }}
MAIL_TENANT_ID: ${{ vars.EMAIL_TENANT_ID }}
MAIL_CLIENT_ID: ${{ vars.EMAIL_CLIENT_ID }}
MAIL_CLIENT_SECRET: ${{ secrets.EMAIL_CLIENT_SECRET }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}