Skip to content

Daily Weight Notification #479

Daily Weight Notification

Daily Weight Notification #479

Workflow file for this run

name: Daily Weight Notification
on:
schedule:
- cron: "0 23 * * *" # UTCで毎日23時(JSTで翌日の8時)
workflow_dispatch:
jobs:
build-and-run:
runs-on: ubuntu-latest
env:
LINE_NOTIFY_TOKEN: ${{ secrets.LINE_NOTIFY_TOKEN }}
HEALTH_PLANET_ACCESS_TOKEN: ${{ secrets.HEALTH_PLANET_ACCESS_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install dependencies
run: npm install
- name: Compile TypeScript
run: npm run build
- name: Run script
run: node dist/index.js