Daily Template #138
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: Daily Template | |
on: | |
schedule: | |
- cron: "13 16 * * *" | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./Journal/Template | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 22 | |
cache: 'npm' | |
cache-dependency-path: ./Journal/Template/package-lock.json | |
- run: npm install | |
- name: Generate Daily Template | |
run: npm run daily | |
env: | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
- uses: EndBug/add-and-commit@v9 | |
with: | |
default_author: github_actions | |
message: Daily Template Update |