Daily update #57
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: 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 |