-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 984 Bytes
/
daily.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
on:
schedule:
- cron: "0 0 * * *" # Run at 9 AM in JST
push:
branches:
- main
jobs:
daily:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db
packages/cron_jobs/target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Build
run: cargo build --release
working-directory: packages/cron_jobs
- name: Set AWS credentials to .env file
run: |
echo ${{ secrets.AWS_ACCESS_KEY_ID }} >> .env
echo ${{ secrets.AWS_SECRET_ACCESS_KEY }} >> .env
- name: Harvest the observation weather data
run: ./packages/cron_jobs/target/release/harvest_observation_weather_data