EURO-AUD #3063
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |