-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1.07 KB
/
daily_sync_rq.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
name: Gather RQ statistical data and write it to google sheet
on:
workflow_dispatch:
schedule:
- cron: "30 17 * * *"
# push:
# branches:
# - main
env:
# please change to your own config.
RQ_COOKIE: ${{ secrets.RQ_COOKIE }}
RQ_CSRF_TOKEN: ${{ secrets.RQ_CSRF_TOKEN }}
RQ_USERID: ${{ secrets.RQ_USERID }}
GOOGLE_SHEET_ID: ${{ secrets.GOOGLE_SHEET_ID }}
GOOGLE_API_CLIENT_EMAIL: ${{ secrets.GOOGLE_API_CLIENT_EMAIL }}
GOOGLE_API_PRIVATE_KEY: ${{ secrets.GOOGLE_API_PRIVATE_KEY }}
BARK_KEY: ${{ secrets.BARK_KEY }}
GARMIN_USERNAME: ${{ secrets.GARMIN_USERNAME }}
GARMIN_PASSWORD: ${{ secrets.GARMIN_PASSWORD }}
GARMIN_GLOBAL_USERNAME: ${{ secrets.GARMIN_GLOBAL_USERNAME }}
GARMIN_GLOBAL_PASSWORD: ${{ secrets.GARMIN_GLOBAL_PASSWORD }}
jobs:
build:
runs-on: ubuntu-latest
name: Gather RQ statistical data and write it to google sheet
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '14'
cache: 'yarn'
- run: yarn
- run: yarn rq
timeout-minutes: 5