Skip to content

Commit

Permalink
Merge pull request #1 from mdrlzy/main
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillt authored Nov 11, 2022
2 parents 774fc9a + 6645347 commit cbc9199
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 181 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/fetch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,17 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Fetch JSON
run: curl -X GET "https://openexchangerates.org/api/latest.json?app_id=${{ secrets.APP_ID }}" --output rates.json
- name: Fetch fiat
run: curl -X GET "https://openexchangerates.org/api/latest.json?app_id=${{ secrets.APP_ID }}" --output fiat-rates.json

- name: Fetch crypto
run: curl -X GET "https://api.binance.com/api/v3/ticker/price" --output crypto-rates.json

- name: Push into Git
run: |-
git config --global user.email "[email protected]"
git config --global user.name "ARK Builders Bot"
git add rates.json
git commit -m "Automated update of rates JSON"
git add fiat-rates.json
git add crypto-rates.json
git commit -m "Automated update of rates"
git push
177 changes: 0 additions & 177 deletions rates.json

This file was deleted.

0 comments on commit cbc9199

Please sign in to comment.