-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (37 loc) · 1.12 KB
/
process-event.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Process New Event
on:
push:
branches:
- main
# paths:
# - 'posts/new-event*.md'
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: cd ai && yarn start
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
- name: Set up Git user
run: |
git config --local user.email "niteshbalusu@icloud.com"
git config --local user.name "Nitesh Balusu"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: 'Add new summary'
commit-message: Add summary
body: 'This pull request adds a new summary.'
branch: 'new-summary'