Skip to content

Daily update

Daily update #50

Workflow file for this run

name: Daily update
on:
schedule:
- cron: '0 12 * * *' # Schedule the job to run every day at noon UTC
jobs:
build-and-run:
runs-on: ubuntu-latest
env:
OPEN_EXCHANGE_RATES_TOKEN: ${{ secrets.OPEN_EXCHANGE_RATES_TOKEN }}
ECONUMO_API_KEY: ${{ secrets.ECONUMO_API_KEY }}
ECONUMO_API_URL: ${{ vars.ECONUMO_API_URL }}
SYMBOLS: ${{ vars.SYMBOLS }} # Set your desired SYMBOLS here, for example "USD,GBP,EUR"
BASE_SYMBOL: ${{ vars.BASE_SYMBOL }} # Set your desired BASE_SYMBOL here, for example "USD"
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.16' # Set your preferred Go version
- name: Build the solution
run: go build -o currency-loader
- name: Run the binary
run: ./currency-loader