-
-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (33 loc) · 1.03 KB
/
notify.yml
File metadata and controls
41 lines (33 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: SO -> Discord Notifier
on:
schedule:
# Runs at 00:00 UTC and 12:00 UTC
- cron: '0 */12 * * *'
workflow_dispatch: # Allow manual runs
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
# Persist credentials so git push works
persist-credentials: true
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
- name: Install dependencies
run: npm ci
- name: Git Setup
run: |
git config user.name 'WebdriverIO Discord Bot'
git config user.email 'bot@webdriver.io'
- name: Run SO notifier
env:
DISCORD_WEBHOOK_ID: ${{ secrets.DISCORD_WEBHOOK_ID }}
DISCORD_WEBHOOK_TOKEN: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
TAG_TO_MONITOR: ${{ secrets.TAG_TO_MONITOR }}
STACKEXCHANGE_KEY: ${{ secrets.STACKEXCHANGE_KEY }}
run: npm run start