-
Notifications
You must be signed in to change notification settings - Fork 6
33 lines (33 loc) · 1.06 KB
/
coinbase.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
name: Coinbase
on:
workflow_dispatch:
schedule:
- cron: '*/15 * * * *'
concurrency: commit
jobs:
price_history:
name: Update Coinbase
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0.1'
- name: Config git user
run: |
git config user.name "Russell Smith"
git config user.email ukd1@users.noreply.github.com
- name: Update price history
run: |
cd coinbase
ruby currencies.rb
ruby products.rb
ruby 24h_stats.rb
git add products.json
git commit products.json -m "Updated Coinbase products in run ${GITHUB_RUN_NUMBER}" || true
git add currencies.json
git commit currencies.json -m "Updated Coinbase currencies in run ${GITHUB_RUN_NUMBER}" || true
git add 24h_stats/*.json
git commit 24h_stats/*.json -m "Updated Coinbase price history in run ${GITHUB_RUN_NUMBER}" || true
- name: Push repo
run: git push || true