-
Notifications
You must be signed in to change notification settings - Fork 104
36 lines (32 loc) · 778 Bytes
/
Copy pathfaq.yml
File metadata and controls
36 lines (32 loc) · 778 Bytes
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
name: Deploy FAQ to Discord
on:
push:
branches: ["master"]
paths:
- "wiki/FAQ.md"
- ".github/faq-updater"
- ".github/workflows/faq.yml"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: "faq"
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install deps
working-directory: .github/faq-updater
run: npm ci
- name: Run FAQ updater
working-directory: .github/faq-updater
run: npm start
env:
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
DISCORD_CHANNEL: ${{ vars.DISCORD_CHANNEL }}