Carrier Owl #197
This file contains 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: Carrier Owl | |
on: | |
schedule: | |
# github actions のデフォルトの time zone が UTC なので、日本時間 - 9時間 した値を書く | |
- cron: '50 0 * * *' | |
workflow_dispatch: | |
push: | |
branches: | |
- test-send-to-slack | |
jobs: | |
ci: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Run image | |
uses: abatilo/actions-poetry@v2.1.6 | |
with: | |
poetry-version: 1.2.0 | |
- name: install dependencies | |
run: poetry install | |
- name: Run owl | |
run: | |
poetry run python src/carrier_owl.py | |
env: | |
SLACK_ID: ${{ secrets.SLACK_ID }} | |
LINE_TOKEN: ${{ secrets.LINE_TOKEN }} | |