Profile Update Notification #21
This file contains 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: Profile Update Notification | |
on: | |
schedule: | |
# Runs script at 5PM UTC (12PM or 1PM ET) every Monday. This should be seven hours before pull-from-idol | |
- cron: '0 17 * * MON' | |
jobs: | |
profile-update-notification: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.BOT_TOKEN }} | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: .node-version | |
- name: Use Yarn Cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/yarn | |
key: yarn-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }} | |
restore-keys: yarn- | |
- name: Install | |
run: yarn | |
- name: Profile update notifications | |
env: | |
FIREBASE_PRIVATE_KEY: ${{ secrets.FIREBASE_PRIVATE_KEY }} | |
FIREBASE_PRIVATE_KEY_ID: ${{ secrets.FIREBASE_PRIVATE_KEY_ID }} | |
OAUTH_CLIENTID: ${{ secrets.OAUTH_CLIENTID}} | |
OAUTH_CLIENT_SECRET: ${{ secrets.OAUTH_CLIENT_SECRET }} | |
OAUTH_REFRESH_TOKEN: ${{ secrets.OAUTH_REFRESH_TOKEN }} | |
run: yarn workspace backend send-profile-update-notifications |