Daily AI Run Coach #25
This file contains hidden or 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 AI Run Coach | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 1 * * *' | |
| jobs: | |
| sync_garmin_to_sheets: | |
| # 🌟 關鍵修改:把 ubuntu-latest 換成 macos-latest 避開 IP 封鎖 | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install Dependencies | |
| run: pip install garminconnect garth gspread google-auth requests | |
| - name: Run Data Sync Script | |
| env: | |
| GARMIN_HASH: ${{ secrets.GARMIN_HASH }} | |
| GCP_CREDENTIALS: ${{ secrets.GCP_CREDENTIALS }} | |
| LINE_CHANNEL_ACCESS_TOKEN: ${{ secrets.LINE_CHANNEL_ACCESS_TOKEN }} | |
| LINE_USER_ID: ${{ secrets.LINE_USER_ID }} | |
| run: | | |
| python coach.py |