Aggregator Zenn Article #160
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: Aggregator Zenn Article | |
on: | |
schedule: | |
# 一日ごとに実行 | |
- cron: "0 0 * * *" | |
workflow_dispatch: {} | |
jobs: | |
run-docker-compose: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
env: | |
MIDRA_LAB_NOTION_API: ${{ secrets.MIDRA_LAB_NOTION_API }} | |
NOTION_DATABASE_URL: ${{ secrets.NOTION_DATABASE_URL }} | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: create env file | |
run: | | |
touch opt/.env | |
echo "MIDRA_LAB_NOTION_API=${MIDRA_LAB_NOTION_API}" >> opt/.env | |
echo "NOTION_DATABASE_ID=${NOTION_DATABASE_ID}" >> opt/.env | |
- name: Build and run Docker Compose | |
run: | | |
docker-compose up -d --build |