-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 991 Bytes
/
euro_aud.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
name: EURO-AUD
on:
schedule:
- cron: '0 * * * *' # every hour
workflow_dispatch:
jobs:
http_request:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Make HTTP GET request
env:
FREECURRENCYAPI: ${{ secrets.FREECURRENCYAPI }}
run: |
# Make the HTTP GET request and save it to a JSON file with a timestamp in the filename
# timestamp="$(date +'%Y%m%d%H%M%S')"
# curl -s -o "${timestamp}.json" "https://api.freecurrencyapi.com/v1/latest?apikey=${FREECURRENCYAPI}¤cies=EUR&base_currency=AUD"
# ls -lrt
# cat "${timestamp}.json"
pip install matplotlib
python plot.py
- name: Commit changes
run: |
git config --global user.email "[email protected]"
git config --global user.name "s50600822"
git add .
git commit -m "save"
git push