- Station Number / 地点番号オープンデータ (https://code4fukui.github.io/jma_station/jma_station_active.csv) jma_station
- getWBGT.js 地点番号を渡すと最新実況値が反る
import { getWBGT } from "https://code4fukui.github.io/wbgt-japan/getWBGT.js";
console.log(await getWBGT(57066));
毎時40分に実行
mkdir .github
mkdir .github/workflows
cat << EOF > .github/workflows/scheduled-fetch.yml
name: Scheduled
on:
schedule:
# 毎時40分に実行
- cron: '40 * * * *'
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: fetch
run: deno run -A download.js
- name: commit and push
run: |
git config --global user.email "workflow@example.com"
git config --global user.name "workflow user"
git add .
git commit -m 'update data' && git push ${REPO} HEAD:${{github.event.pull_request.head.ref}} || true
git push
EOF