added liquid notes #43
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: Generate AI Summaries | |
on: | |
push: | |
branches: | |
- main | |
- master | |
paths: | |
- 'content/events/[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]*.md' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # Important for "Create Pull Request" step | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install dependencies | |
run: cd ai && yarn install --network-timeout 1000000 | |
- name: Build and Process new event | |
run: yarn summarize | |
env: | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
- name: Set up Git user | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "Nitesh Balusu" | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v3 | |
with: | |
token: ${{ secrets.GH_TOKEN }} | |
title: '🧠 New AI generated summary' | |
commit-message: Add summary | |
body: 'This pull request adds a new summary file. This PR was opened automatically by a GitHub Action and the summary was generated by a LLM. Please give the summaries human review before merging!' | |
branch: 'new-summary' |