Upgrade to SDK 35, Kotlin 2.0, JVM 21 and other libraries, apply Comp… #7
This file contains hidden or 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: Fetch exchange rates | |
| on: | |
| push: | |
| branches: [ "main" ] # On every push to `main` | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 0 * * 1" # Also, regularly at 00:00 on Monday | |
| env: | |
| APP_ID: ${{ secrets.APP_ID }} | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Fetch fiat | |
| run: curl -X GET "https://openexchangerates.org/api/latest.json?app_id=${{ secrets.APP_ID }}" --output core/data/src/main/assets/fiat-rates.json | |
| - name: Fetch crypto | |
| run: curl -X GET "https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd" --output core/data/src/main/assets/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 core/data/src/main/assets/fiat-rates.json | |
| git add core/data/src/main/assets/crypto-rates.json | |
| git commit -m "Automated update of rates" | |
| git push |