forked from responsible-ai-collaborative/aiid
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (46 loc) · 1.77 KB
/
process-notifications.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
49
50
name: Process Notifications
on:
workflow_call:
inputs:
environment:
description: The Github environment to load secrets from
type: string
required: true
force-deploy:
description: Skip processing notifications if force deploy is true
type: boolean
required: false
default: false
jobs:
execute-process:
if: ${{ inputs.force-deploy != true }}
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
cache-dependency-path: site/gatsby-site/package-lock.json
- name: Install dependencies
working-directory: site/gatsby-site
run: npm ci
- name: Process Notifications
working-directory: site/gatsby-site
env:
REALM_API_APP_ID: ${{ vars.REALM_API_APP_ID }}
REALM_API_GROUP_ID: ${{ vars.REALM_API_GROUP_ID }}
REALM_API_PRIVATE_KEY: ${{ secrets.REALM_API_PRIVATE_KEY }}
REALM_API_PUBLIC_KEY: ${{ secrets.REALM_API_PUBLIC_KEY }}
REALM_GRAPHQL_API_KEY: ${{ secrets.REALM_GRAPHQL_API_KEY }}
REALM_APP_ID: ${{ vars.REALM_APP_ID }}
API_MONGODB_CONNECTION_STRING: ${{ secrets.API_MONGODB_CONNECTION_STRING }}
ROLLBAR_POST_SERVER_ITEM_ACCESS_TOKEN: ${{ secrets.ROLLBAR_POST_SERVER_ITEM_ACCESS_TOKEN }}
MAILERSEND_API_KEY: ${{ secrets.MAILERSEND_API_KEY }}
NOTIFICATIONS_SENDER_NAME: ${{ vars.NOTIFICATIONS_SENDER_NAME }}
NOTIFICATIONS_SENDER: ${{ vars.NOTIFICATIONS_SENDER }}
SITE_URL: ${{ vars.SITE_URL }}
run: npm run process-notifications:ci