-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (40 loc) · 1.4 KB
/
anniversary.yml
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
42
43
44
45
46
47
48
name: Anniversary
on:
schedule:
# Run at 1:00am CST every day (offset 1 hour from birthday bot)
- cron: "0 7 * * *"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
refresh:
runs-on: ubuntu-latest
environment: Deployment
steps:
# Checkout main
- uses: actions/checkout@v2
# Setup node
- uses: actions/setup-node@v2
with:
node-version: "16"
# Install dependencies
- name: Install dependencies
run: |
npm install
# Run typescript compiler
- name: Compile Typescript
run: |
npm run anniversary-build
# Run the anniversary script and send slack messages
- name: Run Anniversary Script
env:
SLACK_CHANNEL_ID: ${{ secrets.SLACK_CHANNEL_ID }}
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
FIREBASE_API_KEY: ${{ secrets.FIREBASE_API_KEY }}
FIREBASE_AUTH_DOMAIN: ${{ secrets.FIREBASE_AUTH_DOMAIN }}
FIREBASE_DATABASE_URL: ${{ secrets.FIREBASE_DATABASE_URL }}
FIREBASE_PROJECT_ID: ${{ secrets.FIREBASE_PROJECT_ID }}
FIREBASE_STORAGE_BUCKET: ${{ secrets.FIREBASE_STORAGE_BUCKET }}
FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.FIREBASE_MESSAGING_SENDER_ID }}
FIREBASE_APP_ID: ${{ secrets.FIREBASE_APP_ID }}
run: |
npm run anniversary-start