morning #180
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: morning | |
on: | |
schedule: | |
- cron: '40 22 * * *' | |
workflow_dispatch: | |
jobs: | |
send_message: | |
runs-on: ubuntu-latest | |
name: send morning to your girlfriend | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: master | |
- name: sender | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
architecture: 'x64' | |
- run: pip install --upgrade pip | |
- run: pip install -r ./requirements.txt && python ./main.py | |
env: | |
APP_ID: ${{ secrets.APP_ID }} | |
APP_SECRET: ${{ secrets.APP_SECRET }} | |
TEMPLATE_ID: ${{ secrets.TEMPLATE_ID }} | |
USER_ID: ${{ secrets.USER_ID }} | |
START_DATE: ${{ secrets.START_DATE }} | |
BIRTHDAY: ${{ secrets.BIRTHDAY }} | |
CITY: ${{ secrets.CITY }} |