flomo2notion sync #1179
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: flomo2notion sync | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 */3 * * *" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
sync: | |
name: Sync | |
runs-on: ubuntu-latest | |
env: | |
NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }} | |
NOTION_PAGE: ${{ secrets.NOTION_PAGE }} | |
FLOMO_TOKEN: ${{ secrets.FLOMO_TOKEN }} | |
REF: ${{ github.ref }} | |
REPOSITORY: ${{ github.repository }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: flomo2notion sync | |
run: | | |
python -u flomo2notion.py | |