-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 934 Bytes
/
balances.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
name: Get all balances
on:
schedule:
- cron: '3 8 * * *'
jobs:
job1:
name: Get balances
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Use Node 12
uses: actions/setup-node@v1
with:
node-version: '12'
- name: Install dependencies
run: npm ci
- run: node index.js
env:
API_KEY: ${{ secrets.API_KEY }}
BANK_1: ${{ secrets.BANK_LOGIN_1 }}
BANK_2: ${{ secrets.BANK_LOGIN_2 }}
- run: node writeHistory.js
- name: Git add
run: git add docs/bank.json docs/stripe.json docs/history.json
- name: Git useremail
run: git config --global user.email "${{ secrets.EMAIL }}"
- name: Git username
run: git config --global user.name "${{ secrets.USER }}"
- name: Git commit
run: git commit -m "update 💰"
- name: Git fetch
run: git fetch
- name: Git push
run: git push