.github/workflows/scheduleNotification.yml #265
This file contains hidden or 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
| 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 }} |