Discord Notify Bot #140
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
| name: Discord Notify Bot | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "*/10 * * * *" | |
| jobs: | |
| notify: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run notify script | |
| env: | |
| SOURCE_URL: ${{ secrets.SOURCE_URL }} | |
| DISCORD_WEBHOOK_URL: ${{ secrets.STAFF_DISCORD_WEBHOOK_URL }} | |
| run: node index.js |