-
Notifications
You must be signed in to change notification settings - Fork 6
47 lines (40 loc) · 1.33 KB
/
scheduled-updates-production.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
name: Scheduled Production Updates
on:
schedule:
- cron: '10 4 * * *'
- cron: '25 4 * * sat'
- cron: '40 4 * * sun'
jobs:
update-transactions-current-production:
if: github.event.schedule == '10 4 * * *'
name: Current Transactions Update
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/updater
with:
command: update-transactions-current
APP_ID: ${{ secrets.PRODUCTION_HEROKU_APP_ID }}
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
update-transactions-past-production:
if: github.event.schedule == '25 4 * * sat'
name: Past Transactions Update
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/updater
with:
command: update-transactions-past
APP_ID: ${{ secrets.PRODUCTION_HEROKU_APP_ID }}
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
update-candidates-current-production:
if: github.event.schedule == '40 4 * * sun'
name: Current Candidates Update
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/updater
with:
command: update-candidates-current
APP_ID: ${{ secrets.PRODUCTION_HEROKU_APP_ID }}
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}