Skip to content

Weather

Weather #1289

Workflow file for this run

name: Weather
on:
schedule:
- cron: '00 22 * * *'
jobs:
weather:
name: Run Weather
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install Pipenv
uses: dschep/install-pipenv-action@v1
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pipenv
key: ${{ runner.os }}-pipenv-${{ hashFiles('Pipfile.lock') }}
restore-keys: |
${{ runner.os }}-pipenv-
${{ runner.os }}-
- name: Install dependencies
run: pipenv sync
- name: Run Weather
env:
OWM_PLACE_ID: ${{ secrets.OWM_PLACE_ID }}
OWM_API_KEY: ${{ secrets.OWM_API_KEY }}
LINE_ACCESS_TOKEN: ${{ secrets.LINE_ACCESS_TOKEN }}
LINE_USER_ID: ${{ secrets.LINE_USER_ID }}
run: pipenv run python3 ./bots/weather.py